From 760a8fac99b429a5deca524e04c5c7d844430924 Mon Sep 17 00:00:00 2001 From: shobu Date: Tue, 11 Nov 2025 23:09:40 +0100 Subject: [PATCH] replace nix lint with flake checker --- .gitea/workflows/analysis.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/analysis.yml b/.gitea/workflows/analysis.yml index 0c68c23..a9e7dcc 100644 --- a/.gitea/workflows/analysis.yml +++ b/.gitea/workflows/analysis.yml @@ -1,16 +1,17 @@ -on: [push] -name: Lint Nix code +on: + pull_request: + push: + branches: [main] + jobs: - statix: - name: Lint code - runs-on: ubuntu-latest + build: + name: Build Nix targets + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 - - uses: https://github.com/cachix/install-nix-action@v18 - - uses: https://github.com/cachix/cachix-action@v12 - with: - name: statix - - name: "run statix" - uses: https://github.com/jocelynthode/statix-action@master - with: - create_pr: true + - uses: actions/checkout@v3 + - name: Check Nix flake inputs + uses: DeterminateSystems/flake-checker-action@main # This action + - name: Install Nix + uses: DeterminateSystems/determinate-nix-action@v3 + - name: Build default package + run: nix build