diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index c0aa3661cfbcdc..bcfaf6d0c49799 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -51,6 +51,14 @@ jobs: name: perf-test-results path: ./__test-results/*.json + - name: Archive debug artifacts (screenshots, traces) + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 + if: github.event_name == 'pull_request' + with: + name: failures-artifacts + path: ./__test-results/artifacts + if-no-files-found: ignore + - name: Compare performance with current WordPress Core and previous Gutenberg versions if: github.event_name == 'release' env: @@ -77,14 +85,6 @@ jobs: WP_MAJOR="${WP_VERSION_ARRAY[0]}.${WP_VERSION_ARRAY[1]}" ./bin/plugin/cli.js perf $GITHUB_SHA debd225d007f4e441ceec80fbd6fa96653f94737 --tests-branch $GITHUB_SHA --wp-version "$WP_MAJOR" - - name: Archive debug artifacts (screenshots, traces) - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 - if: always() - with: - name: failures-artifacts - path: ./__test-results/artifacts - if-no-files-found: ignore - - uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 if: github.event_name == 'push' id: commit-timestamp