Skip to content

Commit e14ab49

Browse files
Update ci.yml
1 parent 2bc600a commit e14ab49

File tree

1 file changed

+1
-70
lines changed

1 file changed

+1
-70
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
# Job 2: Lint Check
2929
lint:
3030
name: Lint Check
31-
needs: [format]
3231
runs-on: ubuntu-latest
3332
steps:
3433
- name: Checkout code
@@ -61,7 +60,7 @@ jobs:
6160
# Job 3: Build
6261
build:
6362
name: Build
64-
needs: [lint]
63+
needs: [lint, format]
6564
runs-on: ubuntu-latest
6665
steps:
6766
- name: Checkout code
@@ -83,71 +82,3 @@ jobs:
8382
8483
- name: Build project
8584
run: cargo build --verbose --all-features
86-
87-
# Job 4: Test Suite
88-
test:
89-
name: Test Suite
90-
needs: [build]
91-
runs-on: ubuntu-latest
92-
93-
steps:
94-
- name: Checkout code
95-
uses: actions/checkout@v4
96-
97-
- name: Install Rust toolchain
98-
uses: dtolnay/rust-toolchain@master
99-
with:
100-
toolchain: ${{ matrix.rust }}
101-
102-
- name: Cache cargo registry
103-
uses: actions/cache@v4
104-
with:
105-
path: |
106-
~/.cargo/registry
107-
~/.cargo/git
108-
target
109-
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
110-
restore-keys: |
111-
${{ runner.os }}-${{ matrix.rust }}-cargo-
112-
113-
- name: Run tests
114-
run: cargo test --verbose --all-features
115-
116-
- name: Run integration tests
117-
run: cargo test --verbose --test '*'
118-
119-
- name: Run doc tests
120-
run: cargo test --doc --all-features
121-
122-
# Job 5: Security Audit
123-
security:
124-
name: Security Audit
125-
needs: [test]
126-
runs-on: ubuntu-latest
127-
steps:
128-
- name: Checkout code
129-
uses: actions/checkout@v4
130-
131-
- name: Install Rust toolchain
132-
uses: dtolnay/rust-toolchain@stable
133-
134-
- name: Cache cargo registry
135-
uses: actions/cache@v4
136-
with:
137-
path: |
138-
~/.cargo/registry
139-
~/.cargo/git
140-
target
141-
key: ${{ runner.os }}-cargo-audit-${{ hashFiles('**/Cargo.lock') }}
142-
143-
- name: Install cargo-audit
144-
run: cargo install cargo-audit
145-
146-
- name: Run security audit
147-
run: cargo audit
148-
149-
- name: Install cargo-deny
150-
run: cargo install cargo-deny
151-
152-
- name: Run cargo-deny
153-
run: cargo deny check

0 commit comments

Comments
 (0)