Skip to content

Commit 5bbf002

Browse files
committed
update static CI
1 parent 237c849 commit 5bbf002

File tree

4 files changed

+15
-45
lines changed

4 files changed

+15
-45
lines changed

.github/.cache/php-cs-fixer/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/.cache/phpstan/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/.cache/psalm/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/static.yml

Lines changed: 15 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,99 +6,75 @@ on:
66
jobs:
77
phpstan:
88
name: PHPStan
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-latest
1010

1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
1414

15-
- name: Cache PHPStan
16-
uses: actions/cache@v2
17-
with:
18-
path: .github/.cache/phpstan/
19-
key: phpstan-${{ github.sha }}
20-
restore-keys: phpstan-
21-
2215
- name: Setup PHP
2316
uses: shivammathur/setup-php@v2
2417
with:
25-
php-version: 8.2
18+
php-version: 8.3
2619
coverage: none
27-
tools: phpstan:1.4.6, cs2pr
20+
tools: phpstan:1.11, cs2pr
2821

2922
- name: Download dependencies
3023
uses: ramsey/composer-install@v2
31-
with:
32-
composer-options: "--ignore-platform-reqs" # required for PHP 8.2 as not yet official supported
3324

3425
- name: PHPStan
3526
run: phpstan analyze --no-progress --error-format=checkstyle | cs2pr
3627

3728
php-cs-fixer:
3829
name: PHP-CS-Fixer
39-
runs-on: ubuntu-22.04
40-
env:
41-
PHP_CS_FIXER_IGNORE_ENV: 1 # required for PHP 8.2 as not yet official supported
30+
runs-on: ubuntu-latest
4231

4332
steps:
4433
- name: Checkout code
4534
uses: actions/checkout@v4
4635

47-
- name: Cache PhpCsFixer
48-
uses: actions/cache@v2
49-
with:
50-
path: .github/.cache/php-cs-fixer/
51-
key: php-cs-fixer-${{ github.sha }}
52-
restore-keys: php-cs-fixer-
53-
5436
- name: Setup PHP
5537
uses: shivammathur/setup-php@v2
5638
with:
57-
php-version: 8.2
39+
php-version: 8.3
5840
coverage: none
59-
tools: php-cs-fixer:3.11.0, cs2pr
41+
tools: php-cs-fixer:3.63, cs2pr
42+
43+
- name: Display PHP-CS-Fixer version
44+
run: sleep 1 && php-cs-fixer --version
6045

6146
- name: PHP-CS-Fixer
6247
run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
6348

6449
psalm:
6550
name: Psalm
66-
runs-on: ubuntu-22.04
51+
runs-on: ubuntu-latest
6752
steps:
6853
- name: Checkout code
6954
uses: actions/checkout@v4
7055

71-
- name: Cache Psalm
72-
uses: actions/cache@v2
73-
with:
74-
path: .github/.cache/psalm/
75-
key: psalm-${{ github.sha }}
76-
restore-keys: psalm-
77-
7856
- name: Setup PHP
7957
uses: shivammathur/setup-php@v2
8058
with:
81-
php-version: 8.2
59+
php-version: 8.3
8260
coverage: none
83-
tools: vimeo/psalm:5.17
61+
tools: vimeo/psalm:5.25
8462

8563
- name: Download dependencies
8664
uses: ramsey/composer-install@v2
87-
with:
88-
composer-options: "--ignore-platform-reqs" # required for PHP 8.2 as not yet official supported
8965

9066
- name: Psalm
91-
run: psalm --php-version=8.2 --no-progress --output-format=github
67+
run: psalm --no-progress --output-format=github
9268

9369
composer-normalize:
9470
name: Composer Normalize
95-
runs-on: ubuntu-22.04
71+
runs-on: ubuntu-latest
9672

9773
steps:
9874
- name: Setup PHP
9975
uses: shivammathur/setup-php@v2
10076
with:
101-
php-version: 8.2
77+
php-version: 8.3
10278
coverage: none
10379
tools: composer-normalize
10480

0 commit comments

Comments
 (0)