feat(D2): add task check-coverage and enforce coverage gate in check-fast (#34)
This commit was merged in pull request #34.
This commit is contained in:
+8
-2
@@ -331,6 +331,12 @@ tasks:
|
|||||||
cmds:
|
cmds:
|
||||||
- fvm dart run scripts/check_coverage.dart
|
- fvm dart run scripts/check_coverage.dart
|
||||||
|
|
||||||
|
check-coverage:
|
||||||
|
desc: Run unit+widget tests with coverage, then fail if the gate is not met
|
||||||
|
deps: [test]
|
||||||
|
cmds:
|
||||||
|
- task: coverage
|
||||||
|
|
||||||
website-dev:
|
website-dev:
|
||||||
desc: Run Hugo development server
|
desc: Run Hugo development server
|
||||||
cmds:
|
cmds:
|
||||||
@@ -361,8 +367,8 @@ tasks:
|
|||||||
${SSH_USER}@${SSH_HOST}:public_html/
|
${SSH_USER}@${SSH_HOST}:public_html/
|
||||||
|
|
||||||
check-fast:
|
check-fast:
|
||||||
desc: Pre-commit checks — analyze + unit tests + widget tests (no build, no integration)
|
desc: Pre-commit checks — analyze + unit+widget tests + coverage gate (no build, no integration)
|
||||||
deps: [analyze, test, check-hygiene]
|
deps: [analyze, check-coverage, check-hygiene]
|
||||||
|
|
||||||
check-hygiene:
|
check-hygiene:
|
||||||
desc: Verify that no forbidden files (like home dir config) are tracked
|
desc: Verify that no forbidden files (like home dir config) are tracked
|
||||||
|
|||||||
Reference in New Issue
Block a user