Skip to content

Commit

Permalink
ci: add format and check test (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
  • Loading branch information
jdrouet authored Oct 4, 2024
1 parent 1ea0cb8 commit b03583a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit b03583a

Please sign in to comment.