Skip to content

feat: add benchmark workflow #7

feat: add benchmark workflow

feat: add benchmark workflow #7

Workflow file for this run

name: Benchmark
on: [pull_request]
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
env:
php-version: '8.3'
steps:
- name: Checkout master
uses: actions/checkout@v3
with:
ref: 'master'
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.php-version }}
extensions: ${{ env.php-extensions }}
ini-values: zend.assertions=1
coverage: none # Xdebug is installed by default, so we remove it manually
- uses: "ramsey/composer-install@v2"
- name: Creating a baseline benchmark from master
run: composer run-script benchmark-baseline
- name: Checkout PR code
uses: actions/checkout@v3
with:
clean: false
- uses: "ramsey/composer-install@v2"
- name: Compare the performances against the baseline
run: composer run-script benchmark-compare