File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 runs-on : ubuntu-latest
77 steps :
88 - uses : actions/checkout@v4
9- - uses : actions-rs/toolchain@v1
10- with :
11- components : rustfmt
12- toolchain : nightly
13- profile : minimal
14- override : true
15- - uses : actions-rs/cargo@v1
16- with :
17- command : fmt
18- args : --all -- --check
9+ - name : Setup Rust toolchain
10+ run : rustup show && rustup update && rustup component add rustfmt
11+ - name : cargo fmt
12+ run : cargo fmt --all -- --check
1913
2014 clippy :
2115 name : cargo clippy
2216 runs-on : ubuntu-latest
2317 steps :
2418 - uses : actions/checkout@v4
25- - uses : actions-rs/toolchain@v1
26- with :
27- components : clippy
28- toolchain : nightly
29- profile : minimal
30- override : true
31- - uses : actions-rs/cargo@v1
32- with :
33- command : clippy
34- args : -- -D warnings
19+ - name : Setup Rust toolchain
20+ run : rustup show && rustup update && rustup component add clippy
21+ - name : cargo clippy
22+ run : cargo clippy --all-features --tests -- -D warnings
Original file line number Diff line number Diff line change 66 runs-on : ubuntu-latest
77 steps :
88 - uses : actions/checkout@v4
9- - uses : actions-rs/toolchain@v1
10- with :
11- toolchain : ${{ matrix.toolchain }}
12- override : true
13- - uses : actions-rs/cargo@v1
14- with :
15- command : test
16- args : ${{ matrix.profile.flag }}
9+ - name : Install Rust
10+ run : rustup toolchain install ${{ matrix.toolchain }}
11+ - name : cargo test
12+ run : cargo +${{ matrix.toolchain }} test --all-features ${{ matrix.profile.flag }}
1713 strategy :
1814 fail-fast : false
1915 matrix :
You can’t perform that action at this time.
0 commit comments