@@ -10,22 +10,21 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v4
13
- - uses : dtolnay/ rust-toolchain@stable
13
+ - uses : actions-rust-lang/setup- rust-toolchain@v1
14
14
with :
15
15
components : rustfmt
16
- - run : echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
17
- - run : cargo fmt --all -- --check
16
+ - name : Rustfmt Check
17
+ uses : actions-rust-lang/rustfmt@v1
18
18
19
19
# Run clippy on stable only
20
20
clippy :
21
21
name : Clippy
22
22
runs-on : ubuntu-latest
23
23
steps :
24
24
- uses : actions/checkout@v4
25
- - uses : dtolnay/ rust-toolchain@stable
25
+ - uses : actions-rust-lang/setup- rust-toolchain@v1
26
26
with :
27
27
components : clippy
28
- - run : echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
29
28
- run : cargo clippy --all-features
30
29
31
30
test-all :
41
40
- nightly
42
41
steps :
43
42
- uses : actions/checkout@v4
44
- - uses : dtolnay/ rust-toolchain@master
43
+ - uses : actions-rust-lang/setup- rust-toolchain@v1
45
44
with :
46
45
toolchain : ${{ matrix.rust }}
47
- - run : echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
48
46
- run : cargo build
49
47
- run : cargo test -q
50
48
59
57
- 1.74.1
60
58
steps :
61
59
- uses : actions/checkout@v4
62
- - uses : dtolnay/ rust-toolchain@master
60
+ - uses : actions-rust-lang/setup- rust-toolchain@v1
63
61
with :
64
62
toolchain : ${{ matrix.rust }}
65
- - run : echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
66
63
- run : cargo test -q
67
64
68
65
test-macos :
76
73
- 1.74.1
77
74
steps :
78
75
- uses : actions/checkout@v4
79
- - uses : dtolnay/ rust-toolchain@master
76
+ - uses : actions-rust-lang/setup- rust-toolchain@v1
80
77
with :
81
78
toolchain : ${{ matrix.rust }}
82
- - run : echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
83
79
- run : cargo test -q
84
80
85
81
test-old :
94
90
- 1.61.0
95
91
steps :
96
92
- uses : actions/checkout@v4
97
- - uses : dtolnay/ rust-toolchain@master
93
+ - uses : actions-rust-lang/setup- rust-toolchain@v1
98
94
with :
99
95
toolchain : ${{ matrix.rust }}
100
- - run : echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
101
96
- run : sed -i 's/"rsass-cli",/# \0/' Cargo.toml
102
97
- run : cargo test --package rsass-macros -q
0 commit comments