-
Notifications
You must be signed in to change notification settings - Fork 40
37 lines (33 loc) · 1.05 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
name: Coverage
on:
pull_request:
branches:
- main
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
report:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/download-artifact@v3
with:
name: packages.x86_64-linux.evm-coverage
- uses: nixbuild/nix-quick-install-action@v22
- uses: nixbuild/nixbuild-action@master
with:
nixbuild_token: ${{ secrets.nixbuild_token }}
- uses: actions/download-artifact@v3
- uses: hrishikesh-kadam/setup-lcov@v1
- name: Build coverage
run: |
nix --extra-experimental-features nix-command --extra-experimental-features flakes build .#evm-coverage
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: result/lcov.info
minimum-coverage: 90
github-token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true