Skip to content

Commit 8466c5d

Browse files
committed
chore: Use moonrepo to install rust
1 parent 1839d73 commit 8466c5d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/rust.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- uses: actions/checkout@v4
22-
- name: Install Rust
23-
uses: dtolnay/rust-toolchain@master
22+
- name: Set up Rust
23+
uses: moonrepo/setup-rust@v1
2424
with:
25-
toolchain: ${{ matrix.rustv }}
26-
components: clippy, rustfmt
27-
- uses: swatinem/rust-cache@v2
25+
channel: ${{ matrix.rustv }}
26+
bins: cargo-nextest
27+
components: clippy
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2830
- name: Test
29-
run: cargo test
31+
run: cargo nextest run
3032
- name: Clippy
3133
run: cargo clippy -- -Dwarnings
3234
- name: fmt

0 commit comments

Comments
 (0)