Skip to content

Commit

Permalink
Update CI to include caching
Browse files Browse the repository at this point in the history
  • Loading branch information
umgefahren committed Nov 20, 2024
1 parent 306be99 commit 23b7508
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2

- name: Check
run: cargo check --all-features

Expand All @@ -32,6 +34,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2

- name: Run all tests
run: cargo test --all-features
Expand All @@ -46,13 +50,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust-version }}
override: true
components: clippy

- uses: Swatinem/rust-cache@v2

- name: Run cargo clippy
run: cargo clippy --all-features

Expand All @@ -61,14 +65,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt

- uses: Swatinem/rust-cache@v2

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

Expand Down

0 comments on commit 23b7508

Please sign in to comment.