Skip to content

Commit

Permalink
Play with benchmark on GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd committed Oct 30, 2023
1 parent c042cb9 commit cecafac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"test:benchmark": [
"@test:benchmark:building_blocks",
"@test:benchmark:extractor",
"@test:benchmark:loader,",
"@test:benchmark:loader",
"@test:benchmark:transformer"
],
"test:benchmark:building_blocks": [
Expand Down

0 comments on commit cecafac

Please sign in to comment.