Skip to content

Commit 7ec3bb9

Browse files
authored
ci: use winit ci setup
1 parent d9c2083 commit 7ec3bb9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,23 @@ jobs:
1818
name: Check formatting
1919
runs-on: ubuntu-latest
2020
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
2323
with:
24-
rust-version: nightly
2524
components: rustfmt
2625
- uses: taiki-e/install-action@v2
2726
with:
2827
tool: typos-cli
2928
- name: Check Formatting
30-
run: cargo +nightly fmt --all -- --check
31-
- name: Run Typos
29+
run: cargo fmt --all -- --check
30+
- name: run typos
3231
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'
3338
3439
tests:
3540
name: Tests

0 commit comments

Comments
 (0)