From 241632822a954cf4982fbe4f65ebf2ba318169ff Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Sat, 3 Sep 2022 17:09:54 +0200 Subject: [PATCH] ci: add workflow for coding style linting --- .github/workflows/lints.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/lints.yml diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml new file mode 100644 index 0000000..eccf6eb --- /dev/null +++ b/.github/workflows/lints.yml @@ -0,0 +1,23 @@ +name: Run lints +on: + pull_request: + push: +jobs: + cachix: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install nix + uses: cachix/install-nix-action@v17 + with: + nix_path: nixpkgs=channel:nixos-22.05 + extra_nix_config: "experimental-features = nix-command flakes" + + - name: Run formatter + run: nix fmt -- --check . + + - name: Run statix + run: nix run nixpkgs#statix -- check