From 88dd8f7ed84e54a7893e0d4d91818501c736f29e Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Tue, 24 Oct 2023 21:02:45 +0100 Subject: [PATCH] ci: update --- .github/workflows/coverage.yml | 4 ++-- .github/workflows/rust.yml | 27 +++++++++++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 215fbb1..e0c56da 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -45,13 +45,13 @@ jobs: - name: build env: RUSTFLAGS: -Cinstrument-coverage - run: cargo build --all-features --verbose + run: cargo build --verbose - name: test env: RUSTFLAGS: -Cinstrument-coverage LLVM_PROFILE_FILE: name-%p-%m.profraw - run: cargo test --all-features --verbose + run: cargo test --verbose - name: Run grcov run: | diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d3eb0b9..30693bb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,15 +43,34 @@ jobs: - name: Rustfmt run: | + cargo fmt --no-default-features -- --check cargo fmt -- --check + cargo fmt --all-features -- --check - name: Clippy - run: cargo clippy --all-features --all-targets -- -D warnings + run: | + cargo clippy --no-default-features --all-targets -- -D warnings + cargo clippy --all-targets -- -D warnings + cargo clippy --all-features --all-targets -- -D warnings - name: Build - run: cargo build --all-features --verbose + run: | + cargo build --no-default-features --verbose + cargo build --verbose + cargo build --all-features --verbose + + - name: Run tests (minimal features) + run: | + cargo test --no-default-features --lib --bins --tests --verbose ${{matrix.extra}} - - name: Run tests + - name: Run tests (default features) + run: | + cargo test --lib --bins --tests --verbose ${{matrix.extra}} + + - name: Run tests (all features) run: | cargo test --all-features --lib --bins --tests --verbose ${{matrix.extra}} - cargo test --benches ${{matrix.extra}} + + - name: Run benches + run: | + # TODO for each feature who performance matter