Skip to content

Commit

Permalink
Normalize test results patch, verify they are still downloadable in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Feb 7, 2023
1 parent df6e7ae commit 8075cbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3.1.1
with:
name: perf-test-results
path: /home/runner/__test-results/*.json
path: ./__test-results/*.json

- name: Compare performance with current WordPress Core and previous Gutenberg versions
if: github.event_name == 'release'
Expand Down
7 changes: 2 additions & 5 deletions bin/plugin/commands/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,8 @@ async function runTestSuite( testSuite, performanceTestDirectory, runKey ) {
performanceTestDirectory,
`packages/e2e-tests/specs/performance/${ testSuite }.test.results.json`
);
fs.mkdirSync( '/home/runner/__test-results', { recursive: true } );
fs.copyFileSync(
resultsFile,
`/home/runner/__test-results/${ runKey }.results.json`
);
fs.mkdirSync( './__test-results', { recursive: true } );
fs.copyFileSync( resultsFile, `./__test-results/${ runKey }.results.json` );
const rawResults = await readJSONFile(
path.join(
performanceTestDirectory,
Expand Down

0 comments on commit 8075cbb

Please sign in to comment.