|
6 | 6 | jobs: |
7 | 7 | phpstan: |
8 | 8 | name: PHPStan |
9 | | - runs-on: ubuntu-22.04 |
| 9 | + runs-on: ubuntu-latest |
10 | 10 |
|
11 | 11 | steps: |
12 | 12 | - name: Checkout code |
13 | 13 | uses: actions/checkout@v4 |
14 | 14 |
|
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 | | - |
22 | 15 | - name: Setup PHP |
23 | 16 | uses: shivammathur/setup-php@v2 |
24 | 17 | with: |
25 | | - php-version: 8.2 |
| 18 | + php-version: 8.3 |
26 | 19 | coverage: none |
27 | | - tools: phpstan:1.4.6, cs2pr |
| 20 | + tools: phpstan:1.11, cs2pr |
28 | 21 |
|
29 | 22 | - name: Download dependencies |
30 | 23 | uses: ramsey/composer-install@v2 |
31 | | - with: |
32 | | - composer-options: "--ignore-platform-reqs" # required for PHP 8.2 as not yet official supported |
33 | 24 |
|
34 | 25 | - name: PHPStan |
35 | 26 | run: phpstan analyze --no-progress --error-format=checkstyle | cs2pr |
36 | 27 |
|
37 | 28 | php-cs-fixer: |
38 | 29 | 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 |
42 | 31 |
|
43 | 32 | steps: |
44 | 33 | - name: Checkout code |
45 | 34 | uses: actions/checkout@v4 |
46 | 35 |
|
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 | | - |
54 | 36 | - name: Setup PHP |
55 | 37 | uses: shivammathur/setup-php@v2 |
56 | 38 | with: |
57 | | - php-version: 8.2 |
| 39 | + php-version: 8.3 |
58 | 40 | 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 |
60 | 45 |
|
61 | 46 | - name: PHP-CS-Fixer |
62 | 47 | run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr |
63 | 48 |
|
64 | 49 | psalm: |
65 | 50 | name: Psalm |
66 | | - runs-on: ubuntu-22.04 |
| 51 | + runs-on: ubuntu-latest |
67 | 52 | steps: |
68 | 53 | - name: Checkout code |
69 | 54 | uses: actions/checkout@v4 |
70 | 55 |
|
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 | | - |
78 | 56 | - name: Setup PHP |
79 | 57 | uses: shivammathur/setup-php@v2 |
80 | 58 | with: |
81 | | - php-version: 8.2 |
| 59 | + php-version: 8.3 |
82 | 60 | coverage: none |
83 | | - tools: vimeo/psalm:5.17 |
| 61 | + tools: vimeo/psalm:5.25 |
84 | 62 |
|
85 | 63 | - name: Download dependencies |
86 | 64 | uses: ramsey/composer-install@v2 |
87 | | - with: |
88 | | - composer-options: "--ignore-platform-reqs" # required for PHP 8.2 as not yet official supported |
89 | 65 |
|
90 | 66 | - name: Psalm |
91 | | - run: psalm --php-version=8.2 --no-progress --output-format=github |
| 67 | + run: psalm --no-progress --output-format=github |
92 | 68 |
|
93 | 69 | composer-normalize: |
94 | 70 | name: Composer Normalize |
95 | | - runs-on: ubuntu-22.04 |
| 71 | + runs-on: ubuntu-latest |
96 | 72 |
|
97 | 73 | steps: |
98 | 74 | - name: Setup PHP |
99 | 75 | uses: shivammathur/setup-php@v2 |
100 | 76 | with: |
101 | | - php-version: 8.2 |
| 77 | + php-version: 8.3 |
102 | 78 | coverage: none |
103 | 79 | tools: composer-normalize |
104 | 80 |
|
|
0 commit comments