Skip to content

Commit 64c4a81

Browse files
committed
checkpoint: uses package script in CI
1 parent b7d0cb2 commit 64c4a81

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/node.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,14 @@ jobs:
8181
if: steps.test_units.outcome == 'failure'
8282
run: |
8383
echo "::notice::Run \`npm run test:unit\` in your dev environment for a detailed report about failed unit tests"
84+
exit 1
85+
- name: Ensure all units are covered
86+
if: steps.changed-files.outputs.any_changed == 'true'
87+
id: test_unit_missing
88+
run: npm run test:unit:missing
89+
continue-on-error: true
90+
- name: If there are missing unit tests, highlight debug tools
91+
if: steps.test_unit_missing.outcome == 'failure'
92+
run: |
93+
echo "::notice::Run \`npm run test:unit -- run && npm run test:unit:missing\` in your dev environment to see which units are missing a test companion"
8494
exit 1

0 commit comments

Comments
 (0)