fetch vale styles in nix, pinned, and drop vale sync
This commit is contained in:
parent
1971c6773a
commit
9ed7ebab91
1 changed files with 90 additions and 20 deletions
|
|
@ -106,11 +106,11 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: lint
|
||||
# The vale binary comes from flake.lock (`--inputs-from .`), like the devshell's.
|
||||
# Styles are fetched fresh from Vale Package Hub each run (not vendored).
|
||||
# The vale binary is this flake's `.#vale`, the same one the devshell has.
|
||||
# The package carries the pinned styles (nix/packages/vale.nix).
|
||||
# Not wired into branch protection — see prose-lint-errors below for the
|
||||
# error-only slice that is.
|
||||
run: XDG_DATA_HOME="$PWD/.vale-data" nix shell --inputs-from . nixpkgs#vale --command sh -c 'vale sync && vale docs'
|
||||
run: nix run --inputs-from . .#vale -- docs
|
||||
|
||||
prose-lint-errors:
|
||||
name: prose lint (vale, errors)
|
||||
|
|
@ -121,4 +121,4 @@ jobs:
|
|||
- name: lint
|
||||
# Error-level-only slice. Split out so this job alone can be a required
|
||||
# check without blocking merges on the warning/suggestion backlog.
|
||||
run: XDG_DATA_HOME="$PWD/.vale-data" nix shell --inputs-from . nixpkgs#vale --command sh -c 'vale sync && vale --minAlertLevel=error docs'
|
||||
run: nix run --inputs-from . .#vale -- --minAlertLevel=error docs
|
||||
|
|
|
|||
Loading…
Reference in a new issue