Skip to content

Commit

Permalink
Improve CI coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Aug 1, 2024
1 parent bfad198 commit dbfbcd2
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ jobs:
uses: Leafwing-Studios/cargo-cache@v2

- name: Run Clippy lints
run: cargo clippy --workspace --all-targets -- --deny warnings
run: |
for backend in '' log tracing; do
for level in trace debug info warn error; do
cargo clippy --workspace --no-default-features --features "${backend},${level}" --all-targets -- --deny warnings
done
done
# Check documentation.
doc:
Expand All @@ -71,7 +76,12 @@ jobs:
uses: Leafwing-Studios/cargo-cache@v2

- name: Check documentation
run: cargo doc --workspace --document-private-items --no-deps
run: |
for backend in '' log tracing; do
for level in trace debug info warn error; do
cargo doc --workspace --no-default-features --features "${backend},${level}" --document-private-items --no-deps
done
done
# Run tests.
test:
Expand All @@ -93,6 +103,10 @@ jobs:

- name: Run tests
run: |
cargo test --workspace --all-targets
# TODO: Workaround for https://github.com/rust-lang/cargo/issues/6669
cargo test --workspace --doc
for backend in '' log tracing; do
for level in trace debug info warn error; do
cargo test --workspace --no-default-features --features "${backend},${level}" --all-targets
# TODO: Workaround for https://github.com/rust-lang/cargo/issues/6669
cargo test --workspace --no-default-features --features "${backend},${level}" --doc
done
done

0 comments on commit dbfbcd2

Please sign in to comment.