Skip to content

Add vec cache shortcut #147

Add vec cache shortcut

Add vec cache shortcut #147

Workflow file for this run

name: Rust
on:
push:
branches:
- 'master'
- 'staging'
pull_request:
env:
RUST_BACKTRACE: full
RUST_LOG: debug
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- name: Cargo Test
timeout-minutes: 20
run: |
cargo test --all --no-fail-fast
lint:
name: Format and Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- name: Cargo Check
run: |
cargo check --all-targets
- name: Cargo Format
run: |
cargo fmt --all --check
- name: Cargo clippy
run: |
cargo clippy --all-targets --all -- -D warnings