Skip to content

Commit a6ffc2d

Browse files
Split CI
1 parent 1122545 commit a6ffc2d

File tree

2 files changed

+34
-25
lines changed

2 files changed

+34
-25
lines changed

.github/workflows/ci.yml

+1-25
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build & Tests
22

33
on:
44
push:
5-
pull_request:
5+
branches: [ main ]
66

77
env:
88
CARGO_TERM_COLOR: always
@@ -41,27 +41,3 @@ jobs:
4141
run: cargo --verbose t
4242
env:
4343
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
44-
45-
lint:
46-
name: Lint
47-
runs-on: ubuntu-22.04
48-
49-
steps:
50-
- name: Checkout
51-
uses: actions/checkout@v3
52-
53-
- name: Use cached dependencies
54-
uses: Swatinem/rust-cache@v2
55-
with:
56-
key: "ubuntu-22.04-x86_64-unknown-linux-gnu"
57-
58-
- name: Install clippy and rustfmt
59-
run: |
60-
rustup component add clippy
61-
rustup component add rustfmt
62-
63-
- name: Run clippy
64-
run: cargo clippy --all-features -- -Dwarnings
65-
66-
- name: Run fmt
67-
run: cargo fmt --check

.github/workflows/lint.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
lint:
12+
name: Lint
13+
runs-on: ubuntu-22.04
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Use cached dependencies
20+
uses: Swatinem/rust-cache@v2
21+
with:
22+
key: "ubuntu-22.04-x86_64-unknown-linux-gnu"
23+
24+
- name: Install clippy and rustfmt
25+
run: |
26+
rustup component add clippy
27+
rustup component add rustfmt
28+
29+
- name: Run clippy
30+
run: cargo clippy --all-features -- -Dwarnings
31+
32+
- name: Run fmt
33+
run: cargo fmt --check

0 commit comments

Comments
 (0)