Add excludeAllSPMTestTargets configuration option #41
Workflow file for this run
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
| # This workflow will build a Swift project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
| name: SwiftImportChecks Unit Tests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: SwiftyLab/setup-swift@latest | |
| - name: Build | |
| run: swift build | |
| - name: Run tests | |
| run: swift test --enable-code-coverage | |
| - name: Install llvm-cov plugin | |
| run: brew install llvm | |
| - name: Generate coverage report | |
| run: llvm-cov export -format="lcov" .build/debug/SwiftImportChecksPackageTests.xctest/Contents/MacOS/SwiftImportChecksPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: michaelversus/SwiftImportChecks |