Skip to content

Commit fa8de5d

Browse files
committed
WIP #267 - Fail build if missing and add analysis code
1 parent 8827693 commit fa8de5d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/dotnetCi.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ jobs:
130130
echo "failures=true" >> $GITHUB_OUTPUT
131131
fi
132132
cd ../..
133+
- name: Fail the build if no JS coverage info
134+
run: |
135+
if ! [ -f CSF.Screenplay.JsonToHtmlReport.Template/src/TestResults/lcov.info ]
136+
then
137+
echo "Failing the build because there's no coverage for JS tests"
138+
echo "Here's the contents of the test results directory, to assist in analysis"
139+
find CSF.Screenplay.JsonToHtmlReport.Template/src/TestResults
140+
exit 1
141+
fi
133142
134143
# Post-test tasks (artifacts, overall status)
135144

0 commit comments

Comments
 (0)