♻️ Run doc-test generation as an explicit CI step
Drop the `pretest:ci` lifecycle hook and call `create:doc-tests` from the `build` job before `test:ci`. The hook hid the step from the job log and made `test:ci` behave differently under npm than when run directly.
This commit is contained in:
1 parent
4dc58395c0
commit
400fe902e0
6 files changed
+13
-6
No files matched your search
@@ -77,6 +77,10 @@ jobs:
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npm run check
|
||||
# Compile the prose examples into gitignored tests. Kept as an
|
||||
# explicit step (not a `pretest:ci` hook) so it is visible in the
|
||||
# job log and `test:ci` stays a plain command.
|
||||
- run: npm run create:doc-tests
|
||||
# Fails the build below 100% coverage on `src/` (`c8 --all --100`);
|
||||
# the same run produces the report published below. See
|
||||
# development/ci.md § Coverage threshold.
|
||||
|
||||
Reference in new issue
Block a user