File tree 1 file changed +20
-3
lines changed 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 25
25
- name : Checkout
26
26
27
27
28
+ # To test formatting, we need to temporarily disable the rust-toolchain file
29
+ - name : remove toolchain file
30
+ run : rm rust-toolchain
31
+
32
+ - name : rust-toolchain
33
+ uses :
actions-rs/[email protected]
34
+ with :
35
+ toolchain : nightly
36
+ target : x86_64-unknown-linux-gnu
37
+ profile : minimal
38
+ components : rustfmt
39
+ default : true
40
+
41
+ - name : Test fmt
42
+ run : cargo dev fmt --check
43
+
44
+ # Restore the rust-toolchain-file
45
+ - name : Restore rust-toolchain-file
46
+ run : git checkout rust-toolchain
47
+
28
48
# Run
29
49
- name : Build
30
50
run : cargo build --features deny-warnings
36
56
- name : Test update_lints
37
57
run : cargo dev update_lints --check
38
58
39
- - name : Test fmt
40
- run : cargo dev fmt --check
41
-
42
59
# Lintcheck
43
60
- name : build lintcheck
44
61
run : cargo build --features lintcheck,deny-warnings
You can’t perform that action at this time.
0 commit comments