mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-07 16:47:23 +08:00
cc(ci): Update
This commit is contained in:
parent
aea07a89ef
commit
0a8087b85d
1 changed files with 8 additions and 6 deletions
|
|
@ -3,20 +3,22 @@ name: ci
|
|||
description: Run local CI using omnix
|
||||
---
|
||||
|
||||
This command runs local continuous integration checks using omnix.
|
||||
|
||||
**IMPORTANT**: `om ci` will run full CI, thus takes a lot of time. Use only when necessary.
|
||||
This command runs the Nix project using omnix.
|
||||
|
||||
Steps:
|
||||
1. Run `om ci` to execute all CI checks locally
|
||||
1. Run `git add` to add any untracked files added by you **DO NOT COMMIT** changes.
|
||||
2. Run `pre-commit run -a` to autoformat.
|
||||
3. Run `om ci` to do a full build.
|
||||
|
||||
If `om ci` fails, fix all issues.
|
||||
|
||||
This will:
|
||||
- Build all flake outputs, which includes:
|
||||
- Run tests
|
||||
- Run tests
|
||||
- Check formatting
|
||||
- Validate flake structure
|
||||
- Perform other CI validations
|
||||
|
||||
Prerequisites:
|
||||
- Must be in a flake-enabled project directory
|
||||
- omnix (`om`) must be available in the environment
|
||||
- omnix (`om`) must be available in the environment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue