chore: test signed commit #52
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: Nick CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-26 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Select Xcode | |
| run: | | |
| ls /Applications/ | grep Xcode | |
| sudo xcode-select -s "$(ls -d /Applications/Xcode*.app | sort -V | tail -1)" | |
| xcodebuild -version | |
| - name: Build Nick | |
| run: | | |
| xcodebuild build -scheme Nick \ | |
| -destination "platform=macOS" \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Build NickHelper | |
| run: | | |
| xcodebuild build -scheme NickHelper \ | |
| -destination "platform=macOS" \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Run Tests | |
| run: | | |
| xcodebuild test -scheme Nick \ | |
| -destination "platform=macOS" \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| -resultBundlePath TestResults.xcresult | |
| - name: Test Summary | |
| if: always() | |
| run: | | |
| xcrun xcresulttool get test-results summary \ | |
| --path TestResults.xcresult 2>/dev/null || echo "Test results unavailable" | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| xcode: true | |
| xcode_archive_path: TestResults.xcresult |