aboutsummaryrefslogtreecommitdiff
path: root/.gitea/workflows/codecov.yaml
blob: a5a1527ae4ee39fb48a4f943f8f755fee0e8a0b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Codecov
run-name: Test and Upload Code Coverage
on: [push]

jobs:
  Test-CodeCov:
    runs-on: ubuntu-latest
    steps:
      - uses: swift-actions/setup-swift@v2
        with:
          swift-version: "5.9"
      - name: Run Tests
        run: swift test --enable-code-coverage 
      - name: Convert to lcov
        run: llvm-cov export -format="lcov" .build/debug/swift-chess-neoPackageTests.xctest/Contents/MacOS/swift-chess-neoPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
      - name: Upload coverage reports to Codecov
        uses: codecov/codecov-actions@v4.0.1
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          slug: navanchauhan/swift-chess-neo