nixcfg/.github/workflows/flake-checks.yml
Aly Raffauf 1413801e6d github: update flake.lock weekly with pull request
github: use DeterminateSystems nix installer

github: run cicid on prs

github/flake-update-inputs: use PAT to trigger subsequent workflows

github: simplify workflow runs

github: setup git after checkout

github/flake-update-inputs: don't self assign reviews

github/git-sync-mirrors: only run on master

github: don't sync to codeberg

github: only run nix checks on .nix updates

github: only run nix checks on .nix and .lock updates

github: ignore .github and _img paths
2024-07-14 11:44:31 -04:00

29 lines
684 B
YAML

name: "nix"
on:
push:
paths-ignore:
- '.github/**'
- '_img/**'
workflow_dispatch:
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: check if flake complies with default style
run: nix fmt -- -c .
check-eval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: check if flake evaluates
run: nix flake check