SK-3043-ReadmeUpdate #810
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Checks | |
| on: [pull_request] | |
| jobs: | |
| check-commit-message: | |
| name: Check Commit Message | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check JIRA ID | |
| uses: gsactions/commit-message-checker@v1 | |
| with: | |
| pattern: '(\[?[A-Z]{1,5}-[1-9][0-9]*)|(\[AUTOMATED\])|(Merge)|(Release).+$' | |
| flags: 'gm' | |
| excludeDescription: 'true' | |
| checkAllCommitMessages: 'true' | |
| accessToken: ${{ secrets.PAT_ACTIONS }} | |
| error: 'One of your your commit messages is not matching the format with JIRA ID Ex: ( SDK-123 commit message )' | |
| SwiftLint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: SwiftLint | |
| uses: norio-nomura/action-swiftlint@3.2.1 | |
| env: | |
| DIFF_BASE: ${{ github.base_ref }} | |
| with: | |
| args: --config .swiftlint.yml | |
| xcode-build: | |
| name: Xcode Build | |
| runs-on: macOS-15 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Select Xcode 16 | |
| run: sudo xcode-select --switch /Applications/Xcode_16.4.app/Contents/Developer | |
| - name: Boot iOS Simulator | |
| run: | | |
| xcrun simctl boot "iPhone 16" || true | |
| xcrun simctl list devices booted | |
| - name: Build and Test | |
| run: xcodebuild clean -workspace .swiftpm/xcode/package.xcworkspace -scheme Skyflow-Package -enableCodeCoverage YES -destination "platform=iOS Simulator,OS=18.6,name=iPhone 16" VAULT_URL="${{ secrets.VAULT_URL }}" TEST_SKYFLOW_ID1="${{ secrets.TEST_SKYFLOW_ID1 }}" TEST_SKYFLOW_ID2="${{ secrets.TEST_SKYFLOW_ID2 }}" TEST_SKYFLOW_ID3="${{ secrets.TEST_SKYFLOW_ID3 }}" TEST_SKYFLOW_ID4="${{ secrets.TEST_SKYFLOW_ID4 }}" VAULT_ID="${{ secrets.VAULT_ID }}" test | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |