Skip to content

Commit a61ca32

Browse files
authored
CI improvements (#5)
* Run CI only on push * Simplify CI
1 parent 72af39e commit a61ca32

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
11
name: CI
22
on:
33
push:
4-
pull_request:
54

65
jobs:
7-
test:
8-
name: Tests
6+
checks:
97
runs-on: ubuntu-latest
108
steps:
119
- uses: actions/checkout@v4
12-
- uses: actions-rust-lang/setup-rust-toolchain@v1
13-
- name: Run tests
14-
run: cargo test --all-features
15-
16-
formatting:
17-
name: Rustfmt
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v4
21-
- uses: actions-rust-lang/setup-rust-toolchain@v1
22-
with:
23-
components: rustfmt
24-
- name: Run rustfmt
25-
run: cargo fmt
26-
27-
linting:
28-
name: Clippy
29-
runs-on: ubuntu-latest
30-
steps:
31-
- uses: actions/checkout@v4
32-
- uses: actions-rust-lang/setup-rust-toolchain@v1
10+
- uses: dtolnay/rust-toolchain@nightly
3311
with:
34-
components: clippy
35-
- name: Run Clippy
36-
run: cargo clippy --all-targets --all-features
12+
components: clippy, rustfmt
13+
- run: cargo test --all-features
14+
- run: cargo fmt
15+
- run: cargo clippy --all-targets --all-features

0 commit comments

Comments
 (0)