-
Notifications
You must be signed in to change notification settings - Fork 28
50 lines (42 loc) · 1.06 KB
/
cov.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
43
44
45
46
47
48
49
50
---
name: Coverage
'on':
push:
branches:
- development
- cov-*
env:
RUSTUP_TOOLCHAIN: "nightly"
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: "true"
- name: Install dependencies
run: |
sudo apt update
sudo apt install --no-install-recommends --assume-yes \
jq lcov
- name: toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: llvm-tools-preview
- name: Install requirements for code coverage
run: |
cargo install cargo-binutils
cargo install rustfilt
- name: Run test coverage
id: coverage
env:
SKIP_HTML: "1"
run: |
/bin/bash -c ./code_coverage.sh
- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./cov_raw/randomx-rs.lcov