From cbd6c45887a177bd9279ce9198da0712a6417248 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Mon, 18 May 2026 10:31:15 +1000 Subject: ci(coverage): Add repo coverage with codecov --- .github/workflows/coverage.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/coverage.yaml (limited to '.github') diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml new file mode 100644 index 0000000..527aa20 --- /dev/null +++ b/.github/workflows/coverage.yaml @@ -0,0 +1,27 @@ +name: Coverage + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + coverage: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install lcov + run: sudo apt-get update && sudo apt-get install lcov + + - name: Generate coverage report + run: make coverage + + - name: Upload coverage report to Codecov + uses: codecov/codecov-action@v5 + with: + files: coverage.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true \ No newline at end of file -- cgit v1.2.3