Skip to content

check

check #401

Workflow file for this run

name: check
on:
push:
branches: [develop]
pull_request:
merge_group:
permissions:
contents: read
jobs:
fmt:
runs-on: ubuntu-latest
if: ${{ !(github.event_name == 'push' && github.actor == 'github-merge-queue[bot]') }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --check
clippy:
runs-on: ubuntu-latest
if: ${{ !(github.event_name == 'push' && github.actor == 'github-merge-queue[bot]') }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- run: cargo clippy --all-targets -- -D warnings
cargo-nix:
name: cargo-nix
runs-on: ubuntu-latest
if: ${{ !(github.event_name == 'push' && github.actor == 'github-merge-queue[bot]') }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- run: nix run .#generate
- run: git diff --exit-code