Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run more CI in parallel #124

Merged
merged 1 commit into from May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
47 changes: 38 additions & 9 deletions .github/workflows/test.yml
Expand Up @@ -16,9 +16,8 @@ jobs:
targets: wasm32-unknown-unknown
- name: build (WASM)
run: cargo +stable build --target=wasm32-unknown-unknown --no-default-features

test:
name: cargo test
check:
name: cargo check
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -31,13 +30,43 @@ jobs:
run: cargo +stable check --no-default-features
- name: check (all features)
run: cargo +stable check --all-features --all-targets
- name: test/debug (all features)
run: cargo +stable test --all-features
- name: test/debug (no features)
run: cargo +stable test --no-default-features
docs:
name: cargo doc
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Build documentation
run: RUSTDOCFLAGS="-D warnings" cargo +stable doc --no-deps
test-release:
name: cargo test (release)
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: test/release (all features)
run: cargo +stable test --release --all-features
- name: test/release (no features)
run: cargo +stable test --release --no-default-features
- name: Build documentation
run: RUSTDOCFLAGS="-D warnings" cargo +stable doc --no-deps
test-debug:
name: cargo test (debug)
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: test/debug (all features)
run: cargo +stable test --all-features
- name: test/debug (no features)
run: cargo +stable test --no-default-features