Skip to content

Commit d675556

Browse files
authored
Merge pull request #435 from mglaman/test-1.6-min
Allow PHPStan 1.6
2 parents f9d8493 + 6e97104 commit d675556

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

.github/workflows/phpstan-dev.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PHPStan dev
1+
name: PHPStan other versions
22
on:
33
push:
44
branches: [main]
@@ -7,9 +7,9 @@ on:
77
schedule:
88
- cron: 0 0 * * *
99
jobs:
10-
verify:
10+
dev:
1111
runs-on: "ubuntu-latest"
12-
name: Lint
12+
name: "1.7.x-dev"
1313
steps:
1414
- name: "Checkout"
1515
uses: "actions/checkout@v2"
@@ -32,3 +32,28 @@ jobs:
3232
run: "php vendor/bin/phpstan analyze"
3333
- name: "PHPUnit"
3434
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"
56+
- name: "PHPStan"
57+
run: "php vendor/bin/phpstan analyze"
58+
- name: "PHPUnit"
59+
run: "php vendor/bin/phpunit"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"require": {
1313
"php": "^7.4 || ^8.0",
1414
"symfony/finder": "~3.4.5 ||^4.2 || ^5.0 || ^6.0",
15-
"phpstan/phpstan": "^1.7.0",
15+
"phpstan/phpstan": "^1.6.0",
1616
"symfony/yaml": "~3.4.5 || ^4.2|| ^5.0 || ^6.0",
1717
"webflo/drupal-finder": "^1.2"
1818
},

0 commit comments

Comments
 (0)