mirror of
https://github.com/srid/nixos-config.git
synced 2026-07-16 22:01:33 +08:00
add /fastci
This commit is contained in:
parent
ad1ea175d1
commit
386b7797be
1 changed files with 25 additions and 0 deletions
25
modules/home/claude-code/commands/fastci.md
Normal file
25
modules/home/claude-code/commands/fastci.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
name: fastci
|
||||
description: Run fast CI for Haskell projects
|
||||
---
|
||||
|
||||
This command runs a fast CI pipeline for Haskell projects using Cabal.
|
||||
|
||||
Steps:
|
||||
1. Run `git add` to add any untracked files added by you **DO NOT COMMIT** changes.
|
||||
2. Fix all GHC warnings
|
||||
3. Fix all hlint warnings
|
||||
4. Run `pre-commit run -a` to autoformat.
|
||||
5. Ensure it builds: `cabal build all`
|
||||
6. Ensure tests pass: `cabal test all`
|
||||
|
||||
This will:
|
||||
- Clean up code by fixing compiler and linter warnings
|
||||
- Validate formatting and pre-commit hooks
|
||||
- Ensure the project builds successfully
|
||||
- Run the full test suite
|
||||
|
||||
Prerequisites:
|
||||
- Must be in a Haskell project directory with cabal.project or *.cabal files
|
||||
- GHC, Cabal, and hlint must be available in the Nix devShell environment
|
||||
- pre-commit must be configured for the project
|
||||
Loading…
Add table
Add a link
Reference in a new issue