Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 18 additions & 20 deletions .github/workflows/phpbench.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,41 @@

name: "Performance benchmark"
name: Performance benchmark

on:
pull_request:
branches:
- "*.x"
- *.x
push:
branches:
- "*.x"
- *.x

env:
fail-fast: true

jobs:
phpbench:
name: "PHPBench"
runs-on: "ubuntu-22.04"
name: PHPBench

runs-on: ubuntu-22.04

strategy:
matrix:
php-version:
- "8.4"
- "8.5"
php-version: ['8.3', '8.4', '8.4', '8.5', '8.5']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't have enough tests running PHP 8.4 and 8.5... and non-failing 8.3 for some reason. 🤔


steps:
- name: "Checkout"
uses: "actions/checkout@v6"
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 2

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: "pcov"
ini-values: "zend.assertions=1"
php-version: ${{ matrix.php-version }}
coverage: pcov
ini-values: zend.assertions=1

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
- name: Install dependencies with Composer
uses: ramsey/composer-install@v3

- name: "Run PHPBench"
run: "php ./vendor/bin/phpbench run --iterations=3 --warmup=1 --report=aggregate"
- name: Run PHPBench
run: php ./vendor/bin/phpbench run --iterations=3 --warmup=1 --report=aggregate