From 9258bac245b66277ae3a023708ec01d4f10145cd Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Mon, 24 Jul 2023 18:38:41 +0100 Subject: [PATCH] Add more steps to CI and use `cargo hack` --- .github/workflows/rust.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 89f693d..e631423 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,16 +11,16 @@ env: jobs: build: - runs-on: ubuntu-latest - + steps: + - uses: taiki-e/install-action@cargo-hack + - name: build + run: cargo hack build --feature-powerset + - name: test + run: cargo hack test --feature-powerset + fmt: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Build with features - run: cargo build --all-features --verbose - - name: Build without features - run: cargo build --no-default-features --verbose - - name: Run tests - run: cargo test --all-features --verbose + - name: fmt + run: cargo fmt --check