feat: Setup Workflows

This commit is contained in:
Swarsel 2024-07-18 23:14:22 +02:00
parent 3eecea6503
commit b323399182
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
5 changed files with 38 additions and 13 deletions

20
.github/workflows/flake-checks.yaml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Flake check
on:
pull_request:
push:
branches: [main]
jobs:
build:
name: Check flake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v3
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check for dead code
run: git ls-files '*.nix' | nix run nixpkgs#deadnix
- name: Check for lints
run: nix run nixpkgs#statix -- check