Skip to content

Commit 6e97104

Browse files
committed
Add test workflow for 1.6
1 parent 25a2ba6 commit 6e97104

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
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"

0 commit comments

Comments
 (0)