replace nix lint with flake checker
This commit is contained in:
parent
19a7dd2f8e
commit
760a8fac99
@ -1,16 +1,17 @@
|
|||||||
on: [push]
|
on:
|
||||||
name: Lint Nix code
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
statix:
|
build:
|
||||||
name: Lint code
|
name: Build Nix targets
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v3
|
||||||
- uses: https://github.com/cachix/install-nix-action@v18
|
- name: Check Nix flake inputs
|
||||||
- uses: https://github.com/cachix/cachix-action@v12
|
uses: DeterminateSystems/flake-checker-action@main # This action
|
||||||
with:
|
- name: Install Nix
|
||||||
name: statix
|
uses: DeterminateSystems/determinate-nix-action@v3
|
||||||
- name: "run statix"
|
- name: Build default package
|
||||||
uses: https://github.com/jocelynthode/statix-action@master
|
run: nix build
|
||||||
with:
|
|
||||||
create_pr: true
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user