Skip to content

Merge pull request #171 from dotboris/renovate/lock-file-maintenance #367

Merge pull request #171 from dotboris/renovate/lock-file-maintenance

Merge pull request #171 from dotboris/renovate/lock-file-maintenance #367

Workflow file for this run

name: CI
on:
pull_request: {}
push:
branches:
- main
jobs:
check:
name: cargo check
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- run: cargo check
fmt-check:
name: cargo fmt --check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal --component rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --version
- run: cargo fmt --all -- --check --color=always
test-rust:
name: cargo test
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- run: cargo build
- run: cargo test
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal --component clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --version
- run: cargo clippy --all-targets --all-features -- -D warnings
nix-flake-check:
name: nix flake check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
# Helps avoid rate limiting
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix flake check -L --all-systems --keep-going