-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 981 Bytes
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: Coverage
"on":
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Coverage
runs-on: ubuntu-24.04
permissions:
checks: write
contents: read
pull-requests: read
statuses: write
steps:
- name: ✔ Check out
uses: actions/checkout@v4
- name: 🌿 Set up Bazel
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: 🛌 Coverage
run: |
bazel coverage --instrumentation_filter='/lib[/:],/lib_alt[/:]' --combined_report=lcov //test/...
echo "COVERAGE_REPORT=$(bazel info output_path)/_coverage/_coverage_report.dat" >> "$GITHUB_ENV"
- name: 🧑🏻💻 codecov
uses: codecov/codecov-action@v4
with:
file: ${{ env.COVERAGE_REPORT }}
token: ${{ secrets.CODECOV_TOKEN }}