Skip to content

Commit

Permalink
adds cargo hack
Browse files Browse the repository at this point in the history
  • Loading branch information
chanced committed Jun 30, 2024
1 parent 45b7be1 commit 7873cb2
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
name: "Test Suite"
name: "CI"
on:
push:
pull_request:

jobs:
check:
name: cargo hack
runs-on: ubuntu-latest
steps:
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo hack check --feature-powerset --no-dev-deps
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: taiki-e/install-action@cargo-hack
- run: cargo test --all-features
linting:
clippy_lint:
name: cargo clippy
runs-on: ubuntu-latest
steps:
Expand All @@ -20,8 +26,8 @@ jobs:
components: clippy
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo clippy --all-features -- -D warnings
# check formatting with rustfmt
formatting:
# check formatting with rustfmt
verify_format:
name: cargo fmt
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7873cb2

Please sign in to comment.