Skip to content

Commit

Permalink
GitHub actions updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mphypermynds committed Feb 3, 2023
1 parent 8a8af92 commit 932688c
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,53 +20,36 @@ jobs:
- name: Setup | Checkout repository
uses: actions/checkout@v3
- name: Setup | Install rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Setup | Cache rust
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2
- name: Run | Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test
fmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout repository
uses: actions/checkout@v3
- name: Setup | Install rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
- name: Setup | Cache rust
uses: Swatinem/rust-cache@v1
- name: Check | Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout repository
uses: actions/checkout@v3
- name: Setup | Install rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
- name: Setup | Cache rust
uses: Swatinem/rust-cache@v1
uses: Swatinem/rust-cache@v2
- name: Check | Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --tests -- -D warnings

run: cargo clippy --tests -- -D warnings

0 comments on commit 932688c

Please sign in to comment.