From 7724ae92829084b46fdc9787a65c3a0edc9d1b41 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sat, 8 Nov 2025 21:33:33 +0100 Subject: [PATCH] Update ci-performance.yml --- .github/workflows/ci-performance.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-performance.yml b/.github/workflows/ci-performance.yml index c65dd23dd2..4ae8c80d67 100644 --- a/.github/workflows/ci-performance.yml +++ b/.github/workflows/ci-performance.yml @@ -70,13 +70,19 @@ jobs: cat baseline.json continue-on-error: true + - name: Save baseline results to temp location + run: | + mkdir -p /tmp/benchmark-results + cp baseline.json /tmp/benchmark-results/ || echo '[]' > /tmp/benchmark-results/baseline.json + cp baseline-output.txt /tmp/benchmark-results/ || echo 'No baseline output' > /tmp/benchmark-results/baseline-output.txt + - name: Upload baseline results uses: actions/upload-artifact@v4 with: name: baseline-benchmark path: | - baseline.json - baseline-output.txt + /tmp/benchmark-results/baseline.json + /tmp/benchmark-results/baseline-output.txt retention-days: 7 - name: Checkout PR branch @@ -86,6 +92,11 @@ jobs: fetch-depth: 1 clean: true + - name: Restore baseline results + run: | + cp /tmp/benchmark-results/baseline.json ./ || echo '[]' > baseline.json + cp /tmp/benchmark-results/baseline-output.txt ./ || echo 'No baseline output' > baseline-output.txt + - name: Setup Node.js (PR) uses: actions/setup-node@v4 with: