File tree 1 file changed +17
-19
lines changed
1 file changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -4,32 +4,30 @@ name: Lint and Test
4
4
on : [push, pull_request]
5
5
6
6
jobs :
7
- fmt :
8
- name : fmt
7
+ lint :
9
8
runs-on : ubuntu-latest
10
9
steps :
11
- - uses : actions/checkout@v1
12
- - run : rustup update
13
- - run : rustup component add rustfmt
10
+ - uses : actions/checkout@v4
11
+ - uses : dtolnay/rust-toolchain@stable
12
+ with :
13
+ components : rustfmt,clippy
14
14
- run : cargo fmt -- --check
15
+ - run : cargo clippy --all-targets
15
16
16
- clippy :
17
+ test :
17
18
name : clippy
18
19
runs-on : ubuntu-latest
19
20
steps :
20
- - uses : actions/checkout@v1
21
- - run : rustup update
22
- - run : rustup component add clippy
23
- - run : cargo clippy --all --all-targets --all-features
21
+ - uses : actions/checkout@v4
22
+ - uses : dtolnay/rust-toolchain@stable
23
+ - run : cargo build
24
+ - run : cargo test --verbose --all
25
+ env :
26
+ RUST_BACKTRACE : 1
24
27
25
- test :
28
+ miri- test :
26
29
runs-on : ubuntu-latest
27
30
steps :
28
- - uses : actions/checkout@v1
29
- with :
30
- submodules : true
31
- - run : rustup update
32
- - run : cargo build --all-features
33
- - run : cargo test --verbose --all --all-features
34
- env :
35
- RUST_BACKTRACE : 1
31
+ - uses : actions/checkout@v4
32
+ - uses : dtolnay/rust-toolchain@nightly
33
+ - run : cargo +nightly miri test
You can’t perform that action at this time.
0 commit comments