From 5c9b5796116a57b9c8f348fdba810b4b18a1eae6 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-benchmark.yml b/.github/workflows/test-benchmark.yml index 0dbce8259..ce5423633 100644 --- a/.github/workflows/test-benchmark.yml +++ b/.github/workflows/test-benchmark.yml @@ -64,12 +64,13 @@ jobs: uses: "actions/cache@v3" with: path: "var/phpbench" - key: "php-${{ matrix.php-version }}-1.x-phpbench-" + key: "php-${{ matrix.php-version }}-1.x-phpbench-${{ hashFiles('**/phpbench/**/*.xml') }}" restore-keys: | php-${{ matrix.php-version }}-1.x-phpbench- - name: "Clean previous summary" - run: rm -rf ./var/phpbench/summary.txt + run: | + rm -f ./var/phpbench/summary.txt - name: "Execute benchmarks" id: init_comment