Skip to content

Merge pull request #59 from JosephDuffy/workflow-updates #166

Merge pull request #59 from JosephDuffy/workflow-updates

Merge pull request #59 from JosephDuffy/workflow-updates #166

Workflow file for this run

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 }}