replace nix lint with flake checker

This commit is contained in:
shobu 2025-11-11 23:09:40 +01:00
parent 19a7dd2f8e
commit 760a8fac99

View File

@ -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