Skip to content

Commit

Permalink
Infrastructure: Re-run reference-tables and coverage-report on source…
Browse files Browse the repository at this point in the history
… script update (w3c#3048)

Related to PR w3c#3024

Without this change, using lint-staged, the npm run reference-tables and npm run coverage-report scripts are automatically ran when a git commit happens ONLY if files matching content/patterns/**/examples/*.html have been changed. The generating scripts have been overlooked in that automatic process.

This PR triggers the process when adds scripts/coverage-report.* and scripts/reference-tables.* are changed. This should reduce failures of the Check examples/index.html / coverage check if only those script files have been updated in a PR.
  • Loading branch information
howard-e authored Jul 2, 2024
1 parent 4e77bdb commit 69305d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@
"git add content/index/index.html",
"npm run coverage-report",
"git add content/about/coverage-and-quality/"
],
"scripts/reference-tables.*": [
"npm run reference-tables",
"git add content/index/index.html"
],
"scripts/coverage-report.*": [
"npm run coverage-report",
"git add content/about/coverage-and-quality/"
]
},
"ava": {
Expand Down

0 comments on commit 69305d1

Please sign in to comment.