Skip to content

Commit

Permalink
Merge pull request #10 from teamplayer3/fix-actions
Browse files Browse the repository at this point in the history
updated action jobs
  • Loading branch information
teamplayer3 authored Feb 3, 2024
2 parents e28a31d + c00ad04 commit c5af3c0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Rust
on:
push:
branches: [main]
paths: ["**/*.rs", "**/Cargo.toml", "**/Cargo.lock", ".github/*.yml"]
paths: ["**/*.rs", "**/Cargo.toml", "**/Cargo.lock", ".github/**/*.yml"]
pull_request:
branches: [main]
paths: ["**/*.rs", "**/Cargo.toml", "**/Cargo.lock"]
Expand Down Expand Up @@ -33,6 +33,10 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-cache"
save-if: ${{ github.ref == 'refs/heads/master' }}
- run: cargo check --no-default-features --features=${{ matrix.features}}

clippy:
Expand All @@ -47,6 +51,10 @@ jobs:
with:
toolchain: stable
components: clippy
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-cache"
save-if: ${{ github.ref == 'refs/heads/master' }}
- run: cargo clippy --no-default-features --features=${{ matrix.features}}

test:
Expand All @@ -60,4 +68,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-cache"
save-if: ${{ github.ref == 'refs/heads/master' }}
- run: cargo test --no-default-features --features=${{ matrix.features}}

0 comments on commit c5af3c0

Please sign in to comment.