File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,23 @@ jobs:
18
18
name : Check formatting
19
19
runs-on : ubuntu-latest
20
20
steps :
21
- - uses : actions /checkout@v3
22
- - uses : hecrj/setup- rust-action@v1
21
+ - uses : taiki-e /checkout-action@v1
22
+ - uses : dtolnay/ rust-toolchain@nightly
23
23
with :
24
- rust-version : nightly
25
24
components : rustfmt
26
25
- uses : taiki-e/install-action@v2
27
26
with :
28
27
tool : typos-cli
29
28
- name : Check Formatting
30
- run : cargo +nightly fmt --all -- --check
31
- - name : Run Typos
29
+ run : cargo fmt --all -- --check
30
+ - name : run typos
32
31
run : typos
32
+ - name : Typos info
33
+ if : failure()
34
+ run : |
35
+ echo 'To fix typos, please run `typos -w`'
36
+ echo 'To check for a diff, run `typos`'
37
+ echo 'You can find typos here: https://crates.io/crates/typos'
33
38
34
39
tests :
35
40
name : Tests
You can’t perform that action at this time.
0 commit comments