mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-07 09:47:45 +00:00
ci: run no-alloc hot-path tests as separate job
This commit is contained in:
@@ -35,8 +35,8 @@ jobs:
|
||||
- name: Run clippy
|
||||
run: cargo clippy --lib --bins --tests --benches --all-features -- -D warnings && cargo clippy --example benchmark_with_keepalive --example demo --example final_benchmark --example http2_tuning_benchmark --example performance_benchmark --example quick_demo --example snipe -- -D warnings
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --all-features
|
||||
- name: Run tests (excluding no-alloc hot paths)
|
||||
run: cargo test --all-features -- --skip no_alloc_
|
||||
|
||||
- name: Build examples
|
||||
run: |
|
||||
@@ -64,4 +64,24 @@ jobs:
|
||||
run: cargo install cargo-audit
|
||||
|
||||
- name: Run security audit
|
||||
run: cargo audit
|
||||
run: cargo audit
|
||||
|
||||
no_alloc:
|
||||
name: No-alloc hot paths
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
|
||||
- name: Run no-alloc hot path tests
|
||||
run: cargo test --all-features --test no_alloc_hot_paths
|
||||
|
||||
Reference in New Issue
Block a user