Skip to content

Upgrade all deps

Upgrade all deps #190

Workflow file for this run

name: test
on:
push:
branches:
- master
- release
pull_request:
jobs:
# This uses the toolchain defined in rust-toolchain, NOT what's defined above
fmt:
name: "Rustfmt"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache cargo files
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Rustfmt
run: cargo fmt -- --check
# Run clippy and tests. We just use the native target here and hope the results
# are the same for all others
lint-test:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Rust files
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D clippy::all
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Rust files
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install shells
run: sudo apt-get install -y zsh fish
- name: Run tests
run: cargo test