Skip to content

Commit 7255f9b

Browse files
authored
ci: combine test and check (#327)
1 parent 1934ae5 commit 7255f9b

File tree

1 file changed

+5
-30
lines changed

1 file changed

+5
-30
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ defaults:
2424
shell: bash
2525

2626
jobs:
27-
cache: # Warm cache factory for all other CI jobs
28-
name: Check and Build
27+
test:
28+
name: Test
2929
strategy:
3030
fail-fast: true
3131
matrix:
@@ -36,18 +36,14 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737
steps:
3838
- uses: taiki-e/checkout-action@v1
39-
4039
- uses: Boshen/setup-rust@main
4140
with:
4241
save-cache: ${{ github.ref_name == 'main' }}
4342
cache-key: warm
44-
43+
- uses: ./.github/actions/pnpm
4544
- run: cargo check --all-features --locked
46-
47-
# Only need to build the test to create a warm cache on the main branch
48-
- name: Build cache by Cargo Check and Cargo Test
49-
if: ${{ github.ref_name == 'main' }}
50-
run: cargo test --all-features --no-run
45+
- run: cargo test --doc
46+
- run: cargo test --all-features
5147

5248
wasm:
5349
name: Check Wasm
@@ -117,24 +113,3 @@ jobs:
117113
with:
118114
components: rust-docs
119115
- run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --all-features
120-
121-
test:
122-
name: Test
123-
strategy:
124-
fail-fast: true
125-
matrix:
126-
include:
127-
- os: windows-latest
128-
- os: ubuntu-latest
129-
- os: macos-14
130-
runs-on: ${{ matrix.os }}
131-
env:
132-
RUST_BACKTRACE: 1
133-
steps:
134-
- uses: taiki-e/checkout-action@v1
135-
- uses: ./.github/actions/pnpm
136-
- uses: Boshen/setup-rust@main
137-
with:
138-
cache-key: warm
139-
- run: cargo test --doc
140-
- run: cargo test --all-features

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy