Skip to content

Commit 5e5fc80

Browse files
committed
Setup PHP Infection composite action
1 parent 8fe637e commit 5e5fc80

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,17 @@ jobs:
166166
- name: "Checkout"
167167
uses: actions/checkout@v5
168168

169-
- name: "Install PHP"
170-
uses: "shivammathur/setup-php@v2"
169+
- name: "Checkout build-infection"
170+
uses: actions/checkout@v5
171+
with:
172+
repository: "phpstan/build-infection"
173+
path: "build-infection"
174+
ref: "1.x"
175+
176+
- uses: ./build-infection/.github/actions/setup-php
171177
with:
172-
coverage: "pcov"
173178
php-version: "${{ matrix.php-version }}"
174-
ini-file: development
175-
extensions: pdo, mysqli, pgsql, pdo_mysql, pdo_pgsql, pdo_sqlite, mongodb
176-
tools: infection:0.31.7
179+
php-extensions: pdo, mysqli, pgsql, pdo_mysql, pdo_pgsql, pdo_sqlite, mongodb
177180

178181
- name: "Allow installing on PHP 8.4"
179182
if: matrix.php-version == '8.4'
@@ -182,13 +185,6 @@ jobs:
182185
- name: "Install dependencies"
183186
run: "composer install --no-interaction --no-progress"
184187

185-
- name: "Checkout build-infection"
186-
uses: actions/checkout@v5
187-
with:
188-
repository: "phpstan/build-infection"
189-
path: "build-infection"
190-
ref: "1.x"
191-
192188
- name: "Install build-infection dependencies"
193189
working-directory: "build-infection"
194190
run: "composer install --no-interaction --no-progress"

0 commit comments

Comments
 (0)