Skip to content

Commit

Permalink
Fix CI?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg-duarte committed Dec 18, 2023
1 parent c359e05 commit 3f43d82
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,18 @@ jobs:
matrix:
rust: [stable]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.56.0
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- run: cargo test

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy
- run: cargo clippy -- -Dclippy::all
- run: cargo clippy --tests -- -Dclippy::all
- run: cargo clippy --examples -- -Dclippy::all
Expand All @@ -39,15 +34,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@1.56.0
with:
toolchain: 1.56.0
override: true
profile: minimal
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Format tests
run: rustfmt --check tests/**/*.rs
- run: cargo fmt --all -- --check
- run: rustfmt --check tests/**/*.rs

0 comments on commit 3f43d82

Please sign in to comment.