@@ -15,40 +15,29 @@ jobs:
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Install toolchain with rustfmt
18- uses : actions-rs/ toolchain@v1
18+ uses : dtolnay/rust- toolchain@stable
1919 with :
20- toolchain : stable
2120 components : rustfmt
22- - uses : actions/checkout@v2
21+ - uses : actions/checkout@v4
2322 - name : Run rustfmt
2423 run : cargo fmt --all -- --check
2524
26- audit :
27- name : Job audit
28- runs-on : ubuntu-latest
29- steps :
30- - uses : actions/checkout@v1
31- - name : Run audit
32- uses : actions-rs/audit-check@v1
33- with :
34- token : ${{ secrets.GITHUB_TOKEN }}
35-
3625 clippy :
3726 name : Job clippy
3827 needs : rustfmt
3928 runs-on : ubuntu-latest
4029 steps :
4130 - name : Install toolchain with clippy
42- uses : actions-rs/ toolchain@v1
31+ uses : dtolnay/rust- toolchain@stable
4332 with :
44- toolchain : stable
4533 components : clippy
46- - uses : actions/checkout@v2
34+ - uses : actions/checkout@v4
4735 - name : Run clippy
48- uses : actions-rs /clippy-check @v1
36+ uses : giraffate /clippy-action @v1
4937 with :
50- token : ${{ secrets.GITHUB_TOKEN }}
51- args : --all-features ---all-targets -- --deny warnings -A clippy::unknown-clippy-lints
38+ reporter : ' github-pr-check'
39+ github_token : ${{ secrets.GITHUB_TOKEN }}
40+ clippy_flags : --deny warnings -A clippy::unknown-clippy-lints
5241
5342 tests :
5443 name : Job tests
@@ -61,43 +50,29 @@ jobs:
6150 runs-on : ${{ matrix.os }}
6251 steps :
6352 - name : Install toolchain ${{ matrix.rust_channel }} on ${{ matrix.os }}
64- uses : actions-rs/ toolchain@v1
53+ uses : dtolnay/rust- toolchain@master
6554 with :
6655 toolchain : ${{ matrix.rust_channel }}
67- - uses : actions/checkout@v2
56+ - uses : actions/checkout@v4
6857 - name : Run cargo test
69- uses : actions-rs/cargo@v1
70- with :
71- command : test
72- args : --no-default-features --features "${{ matrix.features }}"
58+ run : cargo test --no-default-features --features "${{ matrix.features }}"
7359
7460 code-coverage :
7561 name : Job code coverage
7662 needs : tests
7763 runs-on : ubuntu-latest
7864 steps :
7965 - name : Intall toolchain nightly on ubuntu-latest
80- uses : actions-rs/toolchain@v1
81- with :
82- toolchain : nightly
83- override : true
84- - uses : actions/checkout@v2
85- - name : Download and unpack grcov
86- run : curl -L "$URL" | tar jxf -
87- env :
88- URL : ' https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2'
89- - name : Run cargo test
90- uses : actions-rs/cargo@v1
66+ uses : dtolnay/rust-toolchain@stable
9167 with :
92- command : test
93- args : --all-features
94- env :
95- CARGO_INCREMENTAL : ' 0'
96- RUSTFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
97- RUSTDOCFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
98- - name : Convert gcno and gcda files into lcov
99- run : ./grcov --llvm target/debug -s . -t lcov -o lcov.info --ignore-not-existing --ignore "tests/*" --ignore "examples/*" --ignore "/*" --excl-line "^ *#\["
100- - name : Upload coverage
101- uses : codecov/codecov-action@v1
68+ components : llvm-tools-preview
69+ - uses : actions/checkout@v4
70+ - name : cargo install cargo-llvm-cov
71+ uses : taiki-e/install-action@cargo-llvm-cov
72+ - name : cargo llvm-cov
73+ run : cargo llvm-cov --all-features --lcov --output-path lcov.info
74+ - name : Upload to codecov.io
75+ uses : codecov/codecov-action@v4
10276 with :
103- file : lcov.info
77+ token : ${{ secrets.CODECOV_TOKEN }}
78+ env_vars : OS,RUST
0 commit comments