From a231ff1d6b53bd3f669d54abac1daf9cc2be8669 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 17 Apr 2024 13:35:35 -0600 Subject: add codecov workflow --- .gitea/workflows/codecov.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/codecov.yaml (limited to '.gitea/workflows/codecov.yaml') 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 -- cgit v1.2.3