@@ -20,27 +20,29 @@ jobs:
20
20
persist-credentials : false
21
21
- name : Install lcov tools
22
22
run : sudo apt-get install lcov -y
23
+ # This action automatically reads and applies rust-toolchain.toml
23
24
- name : Install Rust toolchain
24
- uses : dtolnay/ rust-toolchain@v1
25
+ uses : actions-rust-lang/setup- rust-toolchain@v1
25
26
with :
26
- toolchain : stable
27
- components : llvm-tools-preview
28
- - name : Rust Cache
29
- uses : Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0
27
+ components : llvm-tools-preview
28
+ cache : true
30
29
- name : Install grcov
31
30
run : if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi
32
31
- name : Test
33
32
run : cargo test --all-features
34
33
- name : Make coverage directory
35
34
run : mkdir coverage
36
35
- name : Run grcov
37
- run : grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only '**/wallet/ **' --ignore '**/ tests/**' --ignore '**/ examples/**' -o ./coverage/lcov.info
36
+ run : grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only 'src/ **' --ignore 'tests/**' --ignore 'examples/**' -o ./coverage/lcov.info
38
37
- name : Generate HTML coverage report
39
38
run : genhtml -o coverage-report.html --ignore-errors unmapped ./coverage/lcov.info
40
39
- name : Coveralls upload
41
- uses : coverallsapp/github-action@master
40
+ # Action pinned at tag 2.3.6
41
+ uses : coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
42
42
with :
43
43
github-token : ${{ secrets.GITHUB_TOKEN }}
44
+ file : ./coverage/lcov.info
45
+ format : lcov
44
46
- name : Upload artifact
45
47
uses : actions/upload-artifact@v4
46
48
with :
0 commit comments