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/[email protected]

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/[email protected]
          - uses: cachix/install-nix-action@v18
          - uses: cachix/cachix-action@v12
            with:
              name: statix
          - uses: jocelynthode/statix-action@master

Inspiration

Thanks to deadnix-action