Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add format and check test #8

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading