diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68c1d99..4d5a9de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,4 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Build - run: xcodebuild -scheme InfomaniakCoreUI-Package build -sdk iphonesimulator -destination "generic/platform=iOS" - - name: Test - run: xcodebuild -scheme InfomaniakCoreUI-Package test -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 16 Pro,OS=latest" + run: xcodebuild -scheme ios-features build -sdk iphonesimulator -destination "generic/platform=iOS" diff --git a/.github/workflows/semantic-commit.yml b/.github/workflows/semantic-commit.yml index 65da923..29bcd36 100644 --- a/.github/workflows/semantic-commit.yml +++ b/.github/workflows/semantic-commit.yml @@ -15,8 +15,8 @@ jobs: - name: Check Commit Message uses: gsactions/commit-message-checker@v2 with: - pattern: '^Merge .+|(^(feat|fix|chore|docs|style|refactor|perf|ci|test)(\(.+\))?: [A-Z0-9].+)' - error: 'Commit messages and PR title should match conventional commit convention and start with a majuscule.' + pattern: '^(Merge .+|((feat|fix|chore|docs|style|refactor|perf|ci|test)(\(.+\))?: [A-Z0-9].+[^.\s])$)' + error: 'Commit messages and PR title should match conventional commit convention and start with an uppercase.' excludeDescription: 'true' excludeTitle: 'false' checkAllCommitMessages: 'true' diff --git a/.github/workflows/swiftformat.yml b/.github/workflows/swiftformat.yml new file mode 100644 index 0000000..e81f451 --- /dev/null +++ b/.github/workflows/swiftformat.yml @@ -0,0 +1,25 @@ +name: SwiftFormat + +on: + pull_request: + branches: [ main ] + +jobs: + build: + name: SwiftFormat + runs-on: [ self-hosted, iOS ] + + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.1 + with: + access_token: ${{ github.token }} + - uses: jdx/mise-action@v2 + with: + cache: false + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: SwiftFormat + run: swiftformat --lint . --reporter github-actions-log diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml new file mode 100644 index 0000000..1110493 --- /dev/null +++ b/.github/workflows/swiftlint.yml @@ -0,0 +1,25 @@ +name: SwiftLint + +on: + pull_request: + branches: [ main ] + +jobs: + build: + name: SwiftLint + runs-on: [ self-hosted, iOS ] + + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.12.1 + with: + access_token: ${{ github.token }} + - uses: jdx/mise-action@v2 + with: + cache: false + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: SwiftLint + run: swiftlint --config .swiftlint.yml --config .swiftlint-ci.yml --reporter github-actions-logging . diff --git a/Package.swift b/Package.swift index 5e5048f..5800e6c 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,7 @@ let package = Package( .library( name: "MyKSuite", targets: ["MyKSuite"] - ), + ) ], dependencies: [ .package(url: "https://github.com/Infomaniak/ios-core-ui", .upToNextMajor(from: "17.2.0"))