@@ -13,32 +13,31 @@ jobs:
1313
1414 steps :
1515 - name : Checkout
16- uses : actions/checkout@v4
16+ uses : actions/checkout@v6
1717 with :
1818 persist-credentials : false
1919 - name : Install lcov tools
2020 run : sudo apt-get install lcov -y
2121 - name : Install Rust toolchain
22- uses : actions-rs/ toolchain@v1
22+ uses : actions-rust-lang/setup-rust- toolchain@v1
2323 with :
2424 toolchain : stable
25- override : true
26- profile : minimal
2725 components : llvm-tools-preview
28- - name : Rust Cache
29- uses : Swatinem/rust-cache@v2.7.8
3026 - name : Install grcov
31- run : if [[ ! -e ~/.cargo/bin/ grcov ]]; then cargo install grcov; fi
27+ run : command -v grcov || cargo install grcov
3228 - name : Test
3329 run : cargo test --all-features
34- - name : Make coverage directory
35- run : mkdir coverage
3630 - 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
31+ run : |
32+ mkdir -p coverage
33+ grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --keep-only 'src/**' --ignore 'tests/**' -o ./coverage/lcov.info
3834 - name : Check lcov.info
3935 run : cat ./coverage/lcov.info
40- - name : Coveralls
41- uses : coverallsapp/github -action@v2
36+ - name : Upload to Codecov
37+ uses : codecov/codecov -action@v5
4238 with :
4339 github-token : ${{ secrets.GITHUB_TOKEN }}
44- file : ./coverage/lcov.info
40+ files : ./coverage/lcov.info
41+ fail_ci_if_error : false
42+ flags : rust
43+
0 commit comments