Skip to content

Commit

Permalink
update ci workflow to use actions-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
hellow554 committed Sep 24, 2023
1 parent 2f7a231 commit 68a47d4
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,30 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Use Stable Cargo
uses: actions-rs/cargo@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Check
run: cargo check --all-features
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
- name: Clippy
run: cargo clippy --all-features
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- name: Fmt
run: cargo fmt --check --quiet
- name: Build
run: cargo build --no-default-features --verbose
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check --quiet
- name: Run tests
run: cargo test --no-default-features --verbose
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --verbose

0 comments on commit 68a47d4

Please sign in to comment.