add flake check workflow

This commit is contained in:
cy 2025-05-11 01:01:01 -04:00
parent 112654f448
commit 2b52792959

25
.github/workflows/check.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: check
on:
workflow_dispatch:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
enable_kvm: true
extra_nix_config: |
show-trace = true
experimental-features = nix-command flakes
extra-substituters = https://nixcache.cy7.sh
extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8=
- uses: actions/checkout@v4
- name: Run checks
run: nix flake check -L