summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/coverage.yaml27
1 files changed, 27 insertions, 0 deletions
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