Skip to content

Commit

Permalink
chore: update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jun 16, 2023
1 parent 5c2e2d7 commit ddd7fe8
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,19 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy

- name: Check Code Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check
shell: bash

- name: Code Lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --workspace -- -D warnings
run: cargo clippy --all-targets --workspace -- -D warnings
shell: bash

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace
run: cargo test --workspace
shell: bash

0 comments on commit ddd7fe8

Please sign in to comment.