dotfiles/.forgejo/workflows/check.yml

21 lines
682 B
YAML

on:
push:
paths:
- "**.nix"
- "**.lock"
workflow_dispatch:
env:
NIX_CONFIG: "accept-flake-config = true"
jobs:
check:
runs-on: "ubuntu-latest"
steps:
- uses: "https://github.com/actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332" # v4.1.7
- uses: "https://github.com/DeterminateSystems/flake-checker-action@ae43dea95bc73541287cfd10e2dee994d1877291" # v8
- uses: "https://github.com/DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14" # v14
- uses: "https://github.com/DeterminateSystems/magic-nix-cache-action@b46e247b898aa56e6d2d2e728dc6df6c84fdb738" # v7
- run: nix flake check --show-trace