Skip to content

ci: enforce formatting and hlint via nix flake check - #73

Open
Emmanuel-Tyty wants to merge 1 commit into
mainfrom
ci/enforce-formatting-lint
Open

Emmanuel-Tyty wants to merge 1 commit into
mainfrom
ci/enforce-formatting-lint

Conversation

@Emmanuel-Tyty

Copy link
Copy Markdown
Contributor

haskell.yml only builds/tests with cabal and never ran the pre-commit flake check (nixfmt, ormolu, cabal-fmt) or hlint, contradicting CONTRIBUTING.md's claim that CI enforces formatting.

Fixes #72

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense and have useful messages
    • Important changes are reflected in changelog.d of the affected packages
    • Relevant tickets are mentioned in commit messages
  • PR
    • (For external contributions) Corresponding issue exists and is linked in the description
    • Targeting main unless this is a cherry-pick backport
    • Self-reviewed the diff
    • Useful pull request description
    • If relevant, reference the ADR in the PR and reference the PR in the ADR
    • Reviewer requested

haskell.yml only builds/tests with cabal and never ran the
pre-commit flake check (nixfmt, ormolu, cabal-fmt) or hlint,
contradicting CONTRIBUTING.md's claim that CI enforces formatting.

Fixes #72
@Emmanuel-Tyty Emmanuel-Tyty linked an issue Sep 18, 2026 that may be closed by this pull request
3 tasks
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: nix flake check (nixfmt, ormolu, cabal-fmt)
run: nix flake check --print-build-logs

hlint:
Comment on lines +25 to +35
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 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI does not enforce formatting/lint (fourmolu, cabal-fmt, hlint)

2 participants