Skip to content

Commit

Permalink
chore: update github actions and fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
morph-dev committed Apr 13, 2024
1 parent 2558448 commit b3b5980
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
with:
command: check

test:
name: Test Suite
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -27,12 +27,14 @@ jobs:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: test
command: fmt
args: --all -- --check

fmt:
name: Rustfmt
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -41,14 +43,14 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
components: clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
command: clippy
args: --all --all-targets --all-features --no-deps -- -D warnings

clippy:
name: Clippy
test:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -57,8 +59,21 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
command: build
args: --workspace

test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test

0 comments on commit b3b5980

Please sign in to comment.