Skip to content

Commit

Permalink
Fix workflow (#47)
Browse files Browse the repository at this point in the history
* Use checkout@v4

* Don't use cargo@v1
  • Loading branch information
OlivierHecart committed Dec 19, 2023
1 parent fd7296a commit fb579c3
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,21 @@ jobs:
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Rust toolchain
run: |
rustup show
rustup component add rustfmt clippy
- name: Code format check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
run: cargo fmt --check

- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --examples -- -D warnings
run: cargo clippy --all --examples -- -D warnings

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all-targets
run: cargo build --verbose --all-targets

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose
run: cargo test --verbose

0 comments on commit fb579c3

Please sign in to comment.