Skip to content

Commit 6ce70da

Browse files
authored
Merge pull request #450 from mglaman/update-phpstan-dev-flow
Update phpstan-dev workflow
2 parents 5995dad + 0972960 commit 6ce70da

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

.github/workflows/phpstan-dev.yml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ on:
99
jobs:
1010
dev:
1111
runs-on: "ubuntu-latest"
12-
name: "1.7.x-dev"
12+
name: "PHPStan ${{ matrix.phpstan }}"
13+
strategy:
14+
matrix:
15+
phpstan:
16+
- '1.8.x-dev'
17+
- '1.7.x-dev'
18+
- '1.6.x-dev'
1319
steps:
1420
- name: "Checkout"
1521
uses: "actions/checkout@v2"
@@ -21,38 +27,11 @@ jobs:
2127
tools: composer:v2
2228
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, gd
2329
- name: "Bump PHPStan"
24-
run: "composer require --no-update phpstan/phpstan:1.7.x-dev"
30+
run: "composer require --no-update phpstan/phpstan:${{ matrix.phpstan }}"
2531
- name: "Add phpspec/prophecy-phpunit"
2632
run: "composer require phpspec/prophecy-phpunit:^2 --dev --no-update"
2733
- name: "Install dependencies"
2834
run: "composer update --no-progress --prefer-dist"
29-
- name: "PHPCS"
30-
run: "php vendor/bin/phpcs"
31-
- name: "PHPStan"
32-
run: "php vendor/bin/phpstan analyze"
33-
- name: "PHPUnit"
34-
run: "php vendor/bin/phpunit"
35-
last_minor:
36-
runs-on: "ubuntu-latest"
37-
name: "1.6.x"
38-
steps:
39-
- name: "Checkout"
40-
uses: "actions/checkout@v2"
41-
- name: "Install PHP"
42-
uses: "shivammathur/setup-php@v2"
43-
with:
44-
coverage: "none"
45-
php-version: 8.1
46-
tools: composer:v2
47-
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, gd
48-
- name: "Bump PHPStan"
49-
run: "composer require --no-update phpstan/phpstan:~1.6.0"
50-
- name: "Add phpspec/prophecy-phpunit"
51-
run: "composer require phpspec/prophecy-phpunit:^2 --dev --no-update"
52-
- name: "Install dependencies"
53-
run: "composer update --no-progress --prefer-dist"
54-
- name: "PHPCS"
55-
run: "php vendor/bin/phpcs"
5635
- name: "PHPStan"
5736
run: "php vendor/bin/phpstan analyze"
5837
- name: "PHPUnit"

0 commit comments

Comments
 (0)