Skip to content

Commit

Permalink
fix test-assets not getting built right (#2104)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers authored Aug 30, 2023
1 parent 65ebf3f commit b31b873
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/approve-rule.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ await updateRuleVersionsYaml(config, argv.ruleId);
await approveTestCaseJson(config, argv.ruleId);
await commitAndPush(config, `Set ${argv.ruleId} to approved`);

async function generateApprovedRulePages({ tmpDir, rulesDir, glossaryDir }, ruleId) {
async function generateApprovedRulePages({ tmpDir, rulesDir, glossaryDir, testAssetsDir }, ruleId) {
await $`node ./node_modules/act-tools/dist/cli/rule-transform.js \
--rulesDir "${rulesDir}" \
--glossaryDir "${glossaryDir}" \
--testAssetsDir "${testAssetsDir}" \
--outDir "${tmpDir}" \
--ruleIds "${ruleId}"
`;
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/wai-build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ await generateTestCases(config);
const commitMessage = (await $`git log -1 --pretty=%B`).stdout;
await commitAndPush(config, commitMessage);

async function generateProposedRulePages({ tmpDir, rulesDir, glossaryDir }) {
async function generateProposedRulePages({ tmpDir, rulesDir, glossaryDir, testAssetsDir }) {
await $`node ./node_modules/act-tools/dist/cli/rule-transform.js \
--rulesDir "${rulesDir}" \
--glossaryDir "${glossaryDir}" \
--testAssetsDir "${testAssetsDir}" \
--outDir "${tmpDir}" \
--proposed
`;
Expand Down

0 comments on commit b31b873

Please sign in to comment.