Skip to content
check-circle

GitHub Action

statix-action

1.0 Latest version

statix-action

check-circle

statix-action

Lint Nix code, and optionally create a pull request

Installation

Copy and paste the following snippet into your .yml file.

              

- name: statix-action

uses: jocelynthode/statix-action@1.0

Learn more about this action in jocelynthode/statix-action

Choose a version

statix-action

Automatically creates pull requests to lint Nix files

Usage

Create a .github/workflows/statix.yml file:

on: [push]

name: Lint Nix code

jobs:
  statix:
    name: Lint code
      runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v3.1.0
          - uses: cachix/install-nix-action@v18
          - uses: cachix/cachix-action@v12
            with:
              name: statix
          - uses: jocelynthode/statix-action@master

Inspiration

Thanks to deadnix-action