From 2dfe9ef81285478732e5aa2aec266deb2a4a4e30 Mon Sep 17 00:00:00 2001 From: Swarsel Date: Thu, 18 Jul 2024 23:14:22 +0200 Subject: [PATCH] feat: Setup Workflows --- .github/workflows/flake-checks.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/flake-checks.yaml diff --git a/.github/workflows/flake-checks.yaml b/.github/workflows/flake-checks.yaml new file mode 100644 index 0000000..af58897 --- /dev/null +++ b/.github/workflows/flake-checks.yaml @@ -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