Skip to content

Commit

Permalink
Add bench.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudk committed Nov 22, 2024
1 parent bbe659b commit 0e44b0d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Benchmark

on:
push:
pull_request:

jobs:
tests:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
- '8.4'

steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: bcmath, gmp, intl, dom, mbstring
ini-values: zend.assertions=1

- name: Checkout code
uses: actions/checkout@v4

- name: Remove Psalm when on PHP 8.4
if: ${{ matrix.php == '8.4' }}
run: composer remove --dev psalm/plugin-phpunit vimeo/psalm

- uses: "ramsey/composer-install@v3"

- name: Run phpbench
run: vendor/bin/phpbench run

0 comments on commit 0e44b0d

Please sign in to comment.