File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
style :
10
- name : Check Style
11
10
runs-on : ubuntu-latest
12
11
steps :
13
12
- uses : actions/checkout@v4
14
- - name : Install Rustfmt
15
- run : rustup component add rustfmt
13
+ - uses : dtolnay/rust-toolchain@stable
14
+ with :
15
+ components : rustfmt
16
16
- name : Check formatting
17
- run : cargo fmt --all -- -- check
17
+ run : cargo fmt --all --check
18
18
19
19
test :
20
- name : Test
21
20
needs : [style]
22
21
runs-on : ubuntu-latest
23
22
strategy :
27
26
- beta
28
27
steps :
29
28
- uses : actions/checkout@v4
30
- - name : Install Rust
31
- run : rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
29
+ - uses : dtolnay/rust-toolchain@master
30
+ with :
31
+ toolchain : ${{ matrix.rust }}
32
32
- name : Run tests
33
33
run : cargo test --workspace
34
34
You can’t perform that action at this time.
0 commit comments