Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
ci: Added nixfmt and statix
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelSilverdew committed May 5, 2024
1 parent 9166d28 commit 8db15c7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/code_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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

0 comments on commit 8db15c7

Please sign in to comment.