diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bbf567bd..d2809a46 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -3,10 +3,10 @@ name: Rust on: push: branches: - - main + - main pull_request: branches: - - main + - main env: CARGO_TERM_COLOR: always @@ -17,16 +17,17 @@ jobs: build: runs-on: windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ + target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Install Rust toolchain @@ -34,14 +35,14 @@ jobs: with: components: clippy, rustfmt - - name: Clippy - run: cargo clippy -- -D warnings + - name: Formatting + run: cargo fmt -- --check - name: Tests run: cargo test --verbose - - name: Formatting - run: cargo fmt -- --check + - name: Clippy + run: cargo clippy -- -D warnings - name: Documentation run: cargo doc --no-deps