-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.13 KB
/
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
37
38
39
40
41
42
name: Coverage
on:
push:
branches:
- main
- release-*
pull_request:
workflow_dispatch:
jobs:
coverage:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
# If PR is from a non-collaborator (e.g. dependabot) the secrets are missing and the login to cachix fails.
continue-on-error: true
with:
name: espresso-systems-private
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: nix-community
skipPush: ${{ github.actor == 'dependabot[bot]' }}
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Generate coverage reports
run: |
git config --global --add safe.directory "$PWD"
nix develop .#perfShell -c \
cargo llvm-cov nextest -j 2 --release --all-features --all-targets \
--branch --lcov --output-path lcov.info \
- uses: coverallsapp/github-action@master
with:
path-to-lcov: lcov.info