Skip to content

Commit 9ca2bdb

Browse files
authored
chore: improve ci process (#1)
1 parent 3281fe9 commit 9ca2bdb

1 file changed

Lines changed: 6 additions & 29 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,10 @@ on:
77
- "pull-request/[0-9]+"
88

99
jobs:
10-
build-job:
10+
ci-job:
1111
runs-on: linux-amd64-cpu4
1212
container:
1313
image: rust:1.90.0
14-
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v4
17-
18-
- name: Build
19-
run: cargo build
20-
21-
unit-test-job:
22-
runs-on: linux-amd64-cpu4
23-
container:
24-
image: rust:1.90.0
25-
needs: build-job
2614
steps:
2715
- name: Checkout code
2816
uses: actions/checkout@v4
@@ -31,23 +19,12 @@ jobs:
3119
run: |
3220
apt-get update
3321
apt-get install -y python3-full python3-pip
34-
35-
- name: Run tests
36-
run: cargo test
3722
38-
lint-test-job:
39-
runs-on: linux-amd64-cpu4
40-
container:
41-
image: rust:1.90.0
42-
needs: build-job
43-
steps:
44-
- name: Checkout code
45-
uses: actions/checkout@v4
46-
4723
- name: Install Clippy
4824
run: rustup component add clippy
4925

50-
- name: Run Clippy
51-
run: cargo clippy
52-
53-
26+
- name: Build, Lint, and Test
27+
run: |
28+
cargo build
29+
cargo clippy
30+
cargo test

0 commit comments

Comments
 (0)