Merge pull request #59 from JosephDuffy/workflow-updates #166
This file contains 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: Tests | |
on: [push] | |
jobs: | |
tests: | |
name: Tests | |
runs-on: macos-14 | |
strategy: | |
fail-fast: false | |
matrix: | |
xcode: | |
- "15.1" | |
- "15.4" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select Xcode ${{ matrix.xcode }} | |
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.xcode }}.app | |
- name: SwiftPM tests | |
run: swift test --enable-code-coverage | |
- name: Convert coverage to lcov | |
run: xcrun llvm-cov export -format="lcov" .build/debug/xcutilsPackageTests.xctest/Contents/MacOS/xcutilsPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} |