From 537022af75dec1555d3dd3d2f4511045971eb006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Drouet?= Date: Fri, 4 Oct 2024 08:19:34 +0200 Subject: [PATCH] ci: add format and check test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Drouet --- .github/workflows/testing.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index f227a66..9aa48dd 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -3,6 +3,17 @@ name: Testing the library on: [push] jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + profile: minimal + components: rustfmt + - name: run lint + run: cargo fmt --all --check test: runs-on: ubuntu-latest steps: @@ -16,3 +27,10 @@ jobs: uses: actions-rs/cargo@v1 with: command: test + check-features: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: taiki-e/install-action@cargo-hack + - name: execute lib tests + run: cargo hack check --feature-powerset --tests