Skip to content

Commit

Permalink
Add CI cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
f-forcher committed Jul 28, 2024
1 parent b943616 commit 2d3a282
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Check with clippy
run: cargo clippy -- --deny warnings

check-format:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check rust formatting
run: cargo fmt --all -- --check
- uses: actions/checkout@v4

- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Check rust formatting
run: cargo fmt --all -- --check

test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --all-features
- uses: actions/checkout@v4

- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Run tests
run: cargo test --all-features

0 comments on commit 2d3a282

Please sign in to comment.