Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint

on:
merge_group:
pull_request:
push:
branches:
- main

jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes

- name: nix flake check (nixfmt, ormolu, cabal-fmt)
run: nix flake check --print-build-logs

hlint:
Comment on lines +12 to +24
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes

- name: Run hlint
run: nix develop --command hlint .
Comment on lines +25 to +35
Loading