Skip to content

Commit

Permalink
Perf Tests: Fix test build process to call wp-scripts
Browse files Browse the repository at this point in the history
In #45284 we started skipping the generate-types phase of the build
when running the performance tests. This was done to avoid the time
it takes to generate those types when they are ignored by the rest
of the test suite.

In that patch we accidentally skipped running `wp-scripts build`,
and in this patch we're bringing that back to fix the mistake.
  • Loading branch information
dmsnell committed Nov 20, 2022
1 parent 8795c6e commit 839873a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/plugin/commands/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ async function runPerformanceTests( branches, options ) {

log( ` >> Building the ${ fancyBranch } branch` );
await runShellScript(
'npm ci && node ./bin/packages/build.js',
'npm ci && npm run prebuild:packages && node ./bin/packages/build.js && npx wp-scripts build',
buildPath
);
}
Expand Down

0 comments on commit 839873a

Please sign in to comment.