Skip to content

Commit

Permalink
Update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Jan 27, 2024
1 parent b7e8a45 commit 3ecb52b
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,41 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --verbose --all-features

fmt:
name: Rustfmt
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --all -- --check
with:
toolchain: stable
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: check formatting
run: cargo fmt --all -- --check

clippy:
name: Clippy
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy --all --all-features -- -D warnings
with:
toolchain: stable
components: clippy
- uses: Swatinem/rust-cache@v2
- name: check
run: cargo clippy --workspace --all-features --all-targets -- -D warnings

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Build
uses: dtolnay/rust-toolchain@nightly
- name: Run tests
Expand Down

0 comments on commit 3ecb52b

Please sign in to comment.