diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-04-17 13:35:35 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-04-17 13:35:35 -0600 |
commit | a231ff1d6b53bd3f669d54abac1daf9cc2be8669 (patch) | |
tree | da4e6a375063788f732598a75e07a16dfd031d8c /.gitea | |
parent | 20814b5b46aaf79e760afbd108c2b3050059b958 (diff) |
add codecov workflow
Diffstat (limited to '.gitea')
-rw-r--r-- | .gitea/workflows/codecov.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.gitea/workflows/codecov.yaml b/.gitea/workflows/codecov.yaml new file mode 100644 index 0000000..a5a1527 --- /dev/null +++ b/.gitea/workflows/codecov.yaml @@ -0,0 +1,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 |