Skip to content
This repository was archived by the owner on Mar 6, 2022. It is now read-only.

Commit e61f389

Browse files
authored
Maestro updates PHPBench (#16)
1 parent 396d45d commit e61f389

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,34 @@ jobs:
109109
-
110110
name: "Run PHPUnit"
111111
run: "vendor/bin/phpunit"
112+
phpbench:
113+
name: "PHPBench (smoke test)"
114+
115+
runs-on: "ubuntu-latest"
116+
117+
strategy:
118+
matrix:
119+
php-version:
120+
- '7.3'
121+
steps:
122+
-
123+
name: "Checkout code"
124+
uses: "actions/checkout@v2"
125+
126+
-
127+
name: "Install PHP"
128+
uses: "shivammathur/setup-php@v2"
129+
with:
130+
coverage: "none"
131+
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
132+
php-version: "${{ matrix.php-version }}"
133+
tools: composer:v2
134+
135+
-
136+
name: "Composer install"
137+
uses: "ramsey/composer-install@v1"
138+
with:
139+
composer-options: "--no-scripts"
140+
-
141+
name: "Run PHPBench"
142+
run: "vendor/bin/phpbench run --progress=travis --iterations=1 --revs=1"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"friendsofphp/php-cs-fixer": "^2.17",
3636
"jangregor/phpstan-prophecy": "^0.8.0",
3737
"phpactor/test-utils": "^1.1",
38-
"phpbench/phpbench": "^0.17.1",
38+
"phpbench/phpbench": "^1.0.0-alpha3",
3939
"phpspec/prophecy-phpunit": "^2.0",
4040
"phpstan/phpstan": "~0.12.0",
4141
"phpunit/phpunit": "^9.0",
@@ -77,4 +77,4 @@
7777
"./vendor/bin/php-cs-fixer fix"
7878
]
7979
}
80-
}
80+
}

0 commit comments

Comments
 (0)