Skip to content

Commit

Permalink
Merge pull request #370 from jwodder/ci-up
Browse files Browse the repository at this point in the history
Update CI template
  • Loading branch information
jwodder authored Feb 9, 2025
2 parents 52ab22b + 70f5f53 commit b084d87
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,18 @@ jobs:
uses: taiki-e/install-action@cargo-hack

- name: Build crate
run: cargo build --all-targets --verbose
run: |
cargo hack \
--workspace \
--each-feature \
--exclude-no-default-features \
--exclude-all-features ${{ matrix.exclude }} \
build --all-targets --verbose
- name: Test crate
run: |
cargo hack \
--workspace \
--each-feature \
--exclude-no-default-features \
--exclude-all-features ${{ matrix.exclude }} \
Expand Down Expand Up @@ -101,12 +108,19 @@ jobs:
with:
tool: cargo-hack,cargo-minimal-versions

- name: Build crate
run: cargo minimal-versions --direct build --all-targets --verbose
- name: Test crate
run: |
cargo minimal-versions --direct \
--workspace \
--each-feature \
--exclude-no-default-features \
--exclude-all-features \
build --all-targets --verbose
- name: Test crate
run: |
cargo minimal-versions --direct \
--workspace \
--each-feature \
--exclude-no-default-features \
--exclude-all-features \
Expand Down Expand Up @@ -136,7 +150,7 @@ jobs:
tool: cargo-llvm-cov

- name: Test with coverage
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
run: cargo llvm-cov --workspace --all-features --lcov --output-path lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
Expand Down Expand Up @@ -167,13 +181,23 @@ jobs:
- name: Check code
run: |
cargo hack \
--workspace \
--each-feature \
--exclude-no-default-features \
--exclude-all-features \
clippy -- -Dwarnings
- name: Check tests & examples
run: |
cargo hack \
--workspace \
--each-feature \
--exclude-no-default-features \
--exclude-all-features \
clippy --all-targets -- -Dwarnings
clippy --tests --examples -- -Dwarnings
- name: Check formatting
run: cargo fmt --check
run: cargo fmt --all --check

deny:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b084d87

Please sign in to comment.