aboutsummaryrefslogtreecommitdiff
path: root/.gitea
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-04-17 13:35:35 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-04-17 13:35:35 -0600
commita231ff1d6b53bd3f669d54abac1daf9cc2be8669 (patch)
treeda4e6a375063788f732598a75e07a16dfd031d8c /.gitea
parent20814b5b46aaf79e760afbd108c2b3050059b958 (diff)
add codecov workflow
Diffstat (limited to '.gitea')
-rw-r--r--.gitea/workflows/codecov.yaml20
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