Skip to content

Commit

Permalink
Attempt to fail the build again
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Jan 28, 2025
1 parent 08665cb commit 13bf348
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"publish:prerelease": "./scripts/publish-prerelease.sh",
"report:ctrfmerge": "ctrf merge e2e/reports --keep-reports --output-dir test-reports --output ctrf-report.json",
"report:ctrfsummary": "github-actions-ctrf test-reports/ctrf-report.json",
"report:junit2ctrf": "test -e test-reports/vitest.junit.xml && junit-to-ctrf test-reports/vitest.junit.xml --output test-reports/ctrf-report.json || echo 'test-reports/vitest.junit.xml not found.'",
"report:junit2ctrf": "./scripts/junit2ctrf.sh",
"report:prcomment": "mkdir -p ./pr-comment && cp $GITHUB_STEP_SUMMARY pr-comment/pr-comment.html",
"test:ci": "npm run compile && npm run test:lint && npm run test:unit",
"test:e2e": "npm run compile && cd e2e && wdio run ./wdio.conf.ts",
Expand Down
10 changes: 10 additions & 0 deletions scripts/junit2ctrf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Convert junit report to ctrf report

if [ ! -e test-reports/vitest.junit.xml ]; then
# The junit-to-ctrf npm package exits with a 0 status code even if it fails
# to parse the JUnit report, so check for the file manually.
echo "No JUnit report found at test-reports/vitest.junit.xml"
exit 1
fi

junit-to-ctrf test-reports/vitest.junit.xml --output test-reports/ctrf-report.json

0 comments on commit 13bf348

Please sign in to comment.