Skip to content

Merge pull request #23 from subtalegames/renovate/actions-cache-4.x #43

Merge pull request #23 from subtalegames/renovate/actions-cache-4.x

Merge pull request #23 from subtalegames/renovate/actions-cache-4.x #43

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
paths: [ "**.rs", "Cargo.toml", ".github/workflows/rust.yml" ]
pull_request:
branches: [ "main" ]
paths: [ "**.rs", "Cargo.toml", ".github/workflows/rust.yml" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.65.0
components: clippy
- uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Run tests
run: cargo test --all-features --verbose
- name: Run clippy
run: cargo clippy -- -D warnings