-
-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (40 loc) · 1.16 KB
/
coverage.yml
File metadata and controls
51 lines (40 loc) · 1.16 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Coverage
on:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
runs-on: ubuntu-latest
name: Coverage
steps:
- uses: actions/checkout@v6
- name: Install Determinate Nix
uses: DeterminateSystems/determinate-nix-action@v3
with:
extra-conf: lazy-trees = true
- name: Set up FlakeHub Cache
uses: DeterminateSystems/flakehub-cache-action@v3
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
components: llvm-tools-preview
- name: Enter Nix devshell
uses: nicknovitski/nix-develop@v1.2.1
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2.75.9
with:
tool: cargo-llvm-cov
- name: Generate code coverage
run: just test-coverage-codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6.0.0
with:
files: codecov.json
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}