From b14694469243d08d866e14c3e8bac2be3b6bc221 Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Mon, 30 Oct 2023 15:35:27 +0100 Subject: [PATCH] Rework benchmark GH action to use artifact for baseline --- .github/workflows/test-benchmark.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test-benchmark.yml b/.github/workflows/test-benchmark.yml index 0dbce8259..e5946c58c 100644 --- a/.github/workflows/test-benchmark.yml +++ b/.github/workflows/test-benchmark.yml @@ -60,16 +60,12 @@ jobs: - name: "Install locked dependencies" run: "composer install --no-interaction --no-progress" - - name: "Restore PHPBench cache" - uses: "actions/cache@v3" + - name: "Download phpbench benchmarks artifact" + uses: dawidd6/action-download-artifact@v2 with: - path: "var/phpbench" - key: "php-${{ matrix.php-version }}-1.x-phpbench-" - restore-keys: | - php-${{ matrix.php-version }}-1.x-phpbench- - - - name: "Clean previous summary" - run: rm -rf ./var/phpbench/summary.txt + workflow: benchmark-baseline.yml + name: phpbench-baseline + path: ./var/phpbench/ - name: "Execute benchmarks" id: init_comment