@@ -15,57 +15,46 @@ 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 : -- --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 clippy-windows-service :
5443 name : Job clippy windows service
5544 needs : rustfmt
5645 runs-on : windows-latest
5746 steps :
5847 - name : Install toolchain with clippy
59- uses : actions-rs/ toolchain@v1
48+ uses : dtolnay/rust- toolchain@stable
6049 with :
61- toolchain : stable
6250 components : clippy
63- - uses : actions/checkout@v2
51+ - uses : actions/checkout@v4
6452 - name : Run clippy windows service
65- uses : actions-rs /clippy-check @v1
53+ uses : giraffate /clippy-action @v1
6654 with :
67- token : ${{ secrets.GITHUB_TOKEN }}
68- args : --bin windows-service --features main-windows-service -- --deny warnings -A clippy::unknown-clippy-lints
55+ reporter : ' github-pr-check'
56+ github_token : ${{ secrets.GITHUB_TOKEN }}
57+ clippy_flags : --bin windows-service --features main-windows-service -- --deny warnings -A clippy::unknown-clippy-lints
6958
7059 tests :
7160 name : Job tests
@@ -78,38 +67,10 @@ jobs:
7867 runs-on : ${{ matrix.os }}
7968 steps :
8069 - name : Install toolchain ${{ matrix.rust_channel }} on ${{ matrix.os }}
81- uses : actions-rs/ toolchain@v1
70+ uses : dtolnay/rust- toolchain@master
8271 with :
8372 toolchain : ${{ matrix.rust_channel }}
84- - uses : actions/checkout@v2
73+ - uses : actions/checkout@v4
8574 - name : Run cargo test
86- uses : actions-rs/cargo@v1
87- with :
88- command : test
89- args : --no-default-features --features "${{ matrix.features }}"
75+ run : cargo test --no-default-features --features "${{ matrix.features }}"
9076
91- code-coverage :
92- name : Job code coverage
93- needs : tests
94- runs-on : ubuntu-latest
95- steps :
96- - name : Intall toolchain nightly on ubuntu-latest
97- uses : actions-rs/toolchain@v1
98- with :
99- toolchain : nightly
100- override : true
101- - uses : actions/checkout@v2
102- - name : Run cargo test
103- uses : actions-rs/cargo@v1
104- with :
105- command : test
106- env :
107- CARGO_INCREMENTAL : ' 0'
108- RUSTFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
109- RUSTDOCFLAGS : ' -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
110- - name : Run grcov
111- uses : actions-rs/grcov@v0.1
112- - name : Upload coverage
113- uses : codecov/codecov-action@v1
114- with :
115- file : ${{ steps.coverage.outputs.report }}
0 commit comments