We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23212f1 commit 60c6383Copy full SHA for 60c6383
.github/workflows/CI.yml
@@ -7,17 +7,16 @@ on:
7
8
jobs:
9
style:
10
- name: Check Style
11
runs-on: ubuntu-latest
12
steps:
13
- uses: actions/checkout@v4
14
- - name: Install Rustfmt
15
- run: rustup component add rustfmt
+ - uses: dtolnay/rust-toolchain@stable
+ with:
+ components: rustfmt
16
- name: Check formatting
17
- run: cargo fmt --all -- --check
+ run: cargo fmt --all --check
18
19
test:
20
- name: Test
21
needs: [style]
22
23
strategy:
@@ -27,8 +26,9 @@ jobs:
27
26
- beta
28
29
30
- - name: Install Rust
31
- run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
+ - uses: dtolnay/rust-toolchain@master
+ toolchain: ${{ matrix.rust }}
32
- name: Run tests
33
run: cargo test --workspace
34
0 commit comments