Skip to content

Commit 09a58d0

Browse files
committed
Faster code downgrade to speedup CI
1 parent c82e555 commit 09a58d0

File tree

5 files changed

+40
-136
lines changed

5 files changed

+40
-136
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: "shivammathur/setup-php@v2"
3939
with:
4040
coverage: "none"
41-
php-version: "${{ matrix.php-version }}"
41+
php-version: "8.4"
4242

4343
- name: "Downgrade PHPUnit"
4444
if: matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1'
@@ -54,6 +54,12 @@ jobs:
5454
./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}
5555
composer dump
5656
57+
- name: "Change to runtime PHP version"
58+
uses: "shivammathur/setup-php@v2"
59+
with:
60+
coverage: "none"
61+
php-version: "${{ matrix.php-version }}"
62+
5763
- name: "Validate Composer"
5864
run: "composer validate"
5965

.github/workflows/static-analysis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: "shivammathur/setup-php@v2"
4646
with:
4747
coverage: "none"
48-
php-version: "${{ matrix.php-version }}"
48+
php-version: "8.4"
4949
ini-file: development
5050
extensions: mbstring
5151

@@ -65,6 +65,14 @@ jobs:
6565
./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}
6666
composer dump
6767
68+
- name: "Change to runtime PHP version"
69+
uses: "shivammathur/setup-php@v2"
70+
with:
71+
coverage: "none"
72+
php-version: "${{ matrix.php-version }}"
73+
ini-file: development
74+
extensions: mbstring
75+
6876
- name: "PHPStan"
6977
run: "make phpstan"
7078

.github/workflows/tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
uses: "shivammathur/setup-php@v2"
171171
with:
172172
coverage: "none"
173-
php-version: "${{ matrix.php-version }}"
173+
php-version: "8.4"
174174
tools: pecl
175175
extensions: ds,mbstring
176176
ini-file: development
@@ -194,5 +194,15 @@ jobs:
194194
./compiler/vendor/bin/simple-downgrade downgrade -c build/downgrade.php ${{ matrix.php-version }}
195195
composer dump
196196
197+
- name: "Change to runtime PHP version"
198+
uses: "shivammathur/setup-php@v2"
199+
with:
200+
coverage: "none"
201+
php-version: "${{ matrix.php-version }}"
202+
tools: pecl
203+
extensions: ds,mbstring
204+
ini-file: development
205+
ini-values: memory_limit=2G
206+
197207
- name: "Tests"
198208
run: "make tests"

compiler/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "PHAR Compiler for PHPStan",
55
"license": ["MIT"],
66
"require": {
7-
"php": "^8.0",
7+
"php": "^8.2",
88
"nette/neon": "^3.0.0",
9-
"ondrejmirtes/simple-downgrader": "^2.2.1",
9+
"ondrejmirtes/simple-downgrader": "^2.2.2",
1010
"seld/phar-utils": "^1.2",
1111
"symfony/console": "^5.4.43",
1212
"symfony/filesystem": "^5.4.43",
@@ -30,7 +30,7 @@
3030
},
3131
"config": {
3232
"platform": {
33-
"php": "8.0.99"
33+
"php": "8.2.99"
3434
},
3535
"platform-check": false,
3636
"sort-packages": true

compiler/composer.lock

Lines changed: 10 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)