Skip to content

build(deps): bump actions/cache from 3.3.2 to 3.3.3 #87

build(deps): bump actions/cache from 3.3.2 to 3.3.3

build(deps): bump actions/cache from 3.3.2 to 3.3.3 #87

Workflow file for this run

name: check
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch: {}
jobs:
lints:
name: Rustfmt and clippy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install rust (stable)
uses: dtolnay/rust-toolchain@d76c2a93c593483c9892fd8d2538734f73ed8588
with:
components: clippy, rustfmt
- name: Run rustfmt
run: cargo fmt --check
- name: Run clippy
run: cargo clippy --all-features -- -D warnings
build_and_test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install rust (${{ matrix.rust }})
uses: dtolnay/rust-toolchain@d76c2a93c593483c9892fd8d2538734f73ed8588
with:
toolchain: ${{ matrix.rust }}
- name: Cache
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-${{ matrix.rust }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.rust }}-${{ hashFiles('Cargo.lock') }}
${{ runner.os }}-${{ matrix.rust }}-
- name: Build
run: cargo build --all-targets
- name: Run tests
run: cargo test
- name: Perform test application run
run: cargo run
msrv:
name: Check minimal supported rust version (MSRV).
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install rust (stable)
uses: dtolnay/rust-toolchain@d76c2a93c593483c9892fd8d2538734f73ed8588
- name: Cache
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: ~/.cargo
key: ${{ runner.os }}-msrv
- name: Install cargo-msrv
run: cargo install cargo-msrv
- name: Check msrv
run: cargo msrv