@@ -13,32 +13,29 @@ jobs:
1313
1414 steps :
1515 - name : Checkout
16- uses : actions/checkout@v4
16+ uses : actions/checkout@v6
1717 with :
1818 persist-credentials : false
19- - name : Install lcov tools
20- run : sudo apt-get install lcov -y
2119 - name : Install Rust toolchain
22- uses : actions-rs/ toolchain@v1
20+ uses : actions-rust-lang/setup-rust- toolchain@v1
2321 with :
2422 toolchain : stable
25- override : true
26- profile : minimal
2723 components : llvm-tools-preview
28- - name : Rust Cache
29- uses : Swatinem/rust-cache@v2.7.8
3024 - name : Install grcov
31- run : if [[ ! -e ~/.cargo/bin/ grcov ]]; then cargo install grcov; fi
25+ run : command -v grcov || cargo install grcov
3226 - name : Test
3327 run : cargo test --all-features
34- - name : Make coverage directory
35- run : mkdir coverage
3628 - name : Run grcov
37- run : grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only 'src/**' --ignore 'tests/**' -o ./coverage/lcov.info
29+ run : |
30+ mkdir -p coverage
31+ grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only 'src/**' --ignore 'tests/**' -o ./coverage/lcov.info
3832 - name : Check lcov.info
3933 run : cat ./coverage/lcov.info
40- - name : Coveralls
41- uses : coverallsapp/github -action@v2
34+ - name : Upload to Codecov
35+ uses : codecov/codecov -action@v5
4236 with :
4337 github-token : ${{ secrets.GITHUB_TOKEN }}
44- file : ./coverage/lcov.info
38+ files : ./coverage/lcov.info
39+ fail_ci_if_error : false
40+ flags : rust
41+
0 commit comments