Skip to content

refactor: remove redundant empty line #71

refactor: remove redundant empty line

refactor: remove redundant empty line #71

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@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
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@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.cargo
key: ${{ runner.os }}-msrv
- name: Install cargo-msrv
run: cargo install cargo-msrv
- name: Check msrv
run: cargo msrv