This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
Merge pull request #30 from ztr-pen/patch-1 #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Check | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
lint: | |
name: Run nixfmt and statix | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v26 | |
- name: Install nixfmt and statix | |
run: | | |
nix profile install nixpkgs#nixfmt-rfc-style nixpkgs#statix | |
- name: Run nixfmt | |
run: | | |
nixfmt --check ./**/*.nix | |
- name: Run statix | |
run: | | |
statix check |