File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 88 CARGO_TERM_COLOR : always
99
1010jobs :
11- test :
11+ lint :
1212 runs-on : ubuntu-latest
1313 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
1414 steps :
1515 - uses : actions/checkout@v4
1616 - uses : dtolnay/rust-toolchain@stable
1717 with :
18- toolchain : stable
18+ toolchain : nightly
1919 components : rustfmt, clippy
2020 - uses : Swatinem/rust-cache@v2
21-
22- - name : Check formating
23- run : cargo fmt -- --check
24-
21+ - name : Check formatting
22+ run : cargo +nightly fmt -- --check
2523 - name : Clippy
2624 run : |
2725 cargo --version
2826 cargo clippy --version
2927 cargo clippy --all-targets --all-features -- --deny warnings
3028
31- - name : Check formating
32- run : cargo fmt -- --check
29+ test :
30+ runs-on : ubuntu-latest
31+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
32+ steps :
33+ - uses : actions/checkout@v4
34+ - uses : dtolnay/rust-toolchain@stable
35+ with :
36+ toolchain : stable
37+ - uses : Swatinem/rust-cache@v2
3338
3439 - name : Run tests
3540 run : cargo test --verbose
You can’t perform that action at this time.
0 commit comments