Skip to content

Commit

Permalink
add one more build
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 24, 2023
1 parent 693387c commit ed6ccb1
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,41 @@ jobs:
path: dist/bench-branch-main-result.xml

pr-bench-test:
runs-on: ubuntu-latest
name: Benchmark PR
needs: main-bench-test
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
ini-values: phar.readonly=0, display_errors=On, error_reporting=-1
tools: composer
coverage: none

- name: Install Composer dependencies
uses: ramsey/composer-install@v2

- name: Ensure that the make target is up to date
run: make _vendor_install

- name: Install PHPBench
uses: ramsey/composer-install@v2
with:
working-directory: vendor-bin/phpbench

- name: Ensure that the PHPBench make target is up to date
run: make phpbench_install

- name: Run PHPBench
run: make phpbench

pr-main-bench-test:
runs-on: ubuntu-latest
name: Benchmark PR
needs: main-bench-test
Expand Down Expand Up @@ -91,7 +126,7 @@ jobs:
with:
name: bench-branch-main-result

- name: Run PHPBench against PR branch
- name: Run PHPBench for PR branch
run: make phpbench_pr


Expand All @@ -104,6 +139,7 @@ jobs:
needs:
- main-bench-test
- pr-bench-test
- pr-main-bench-test
if: always()
steps:
- name: Successful run
Expand Down

0 comments on commit ed6ccb1

Please sign in to comment.