Skip to content

Commit 123873d

Browse files
committed
Split push and review workflows to appease rustfmt
1 parent 264ec02 commit 123873d

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

.github/workflows/push.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Push
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: dtolnay/rust-toolchain@stable
16+
- name: Build
17+
run: cargo build --verbose
18+
- name: Run tests
19+
run: cargo test --verbose
20+
fmt:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: dtolnay/rust-toolchain@nightly
25+
with:
26+
components: clippy, rustfmt
27+
- name: clippy
28+
uses: clechasseur/rs-clippy-check@v3
29+
- name: rustfmt
30+
uses: mbrobbel/rustfmt-check@0.8.1
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/build.yml renamed to .github/workflows/review.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: Build
1+
name: Review
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
75
branches: [ main ]
86

0 commit comments

Comments
 (0)