Skip to content

Commit 9ca5f17

Browse files
committed
Use CI workflow from ruma repository
1 parent a6fb336 commit 9ca5f17

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,35 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v6
20-
- uses: dtolnay/rust-toolchain@stable
19+
- name: Checkout repo
20+
uses: actions/checkout@v6
21+
22+
- name: Install rust stable toolchain
23+
uses: dtolnay/rust-toolchain@stable
2124
with:
2225
components: rustfmt
23-
- run: cargo fmt -- --check
26+
27+
- name: Run rustfmt
28+
run: cargo fmt -- --check
2429

2530
clippy:
2631
name: Run clippy
2732
runs-on: ubuntu-latest
2833

2934
steps:
30-
- uses: actions/checkout@v6
31-
- uses: dtolnay/rust-toolchain@stable
35+
- name: Checkout repo
36+
uses: actions/checkout@v6
37+
38+
- name: Install rust stable toolchain
39+
uses: dtolnay/rust-toolchain@stable
3240
with:
3341
components: clippy
42+
3443
- uses: Swatinem/rust-cache@v2
35-
- run: cargo clippy --all-targets -- -D warnings
3644

37-
typos:
38-
name: Spell Check with Typos
39-
runs-on: ubuntu-latest
45+
- name: Run clippy
46+
run: cargo clippy --all-targets -- -D warnings
4047

41-
steps:
42-
- uses: actions/checkout@v6
43-
- uses: crate-ci/typos@v1.39.2
48+
style:
49+
name: Style
50+
uses: ruma/ruma/.github/workflows/style.yml@6fc96e3af47c05a096df2bf2428a9accfc9b73ed

0 commit comments

Comments
 (0)