-
-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (37 loc) · 1.34 KB
/
benchmarks.yaml
File metadata and controls
38 lines (37 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Benchmarks
on: [pull_request]
jobs:
run:
runs-on: ubuntu-latest
name: Performance regression check
steps:
- name: Checkout base branch
uses: actions/checkout@master
with:
ref: ${{ github.base_ref }}
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: '8.5'
tools: 'composer:v2'
extensions: mbstring, dom, soap
coverage: none
- name: Install dependencies (base)
run: composer update --prefer-dist --no-progress --no-suggest
- name: Benchmark baseline (base branch)
run: |
vendor/bin/phpbench run benchmarks/ \
--tag=baseline \
--store \
--report=aggregate
- name: Checkout PR branch
uses: actions/checkout@master
with:
clean: false
- name: Install dependencies (PR)
run: composer update --prefer-dist --no-progress --no-suggest
- name: Benchmark PR branch vs baseline
run: |
vendor/bin/phpbench run benchmarks/ \
--ref=baseline \
--report=aggregate