|
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | static-analysis: |
14 | | - name: "Rund static analysis with P${{ matrix.php }} and ${{ matrix.dependencies }} dependencies" |
| 14 | + name: "Run static analysis with P${{ matrix.php }} and ${{ matrix.dependency-version }} dependencies" |
15 | 15 | runs-on: ubuntu-latest |
16 | 16 | strategy: |
17 | 17 | fail-fast: true |
18 | 18 | matrix: |
19 | 19 | php: |
20 | | - - "8.1" |
21 | 20 | - "8.2" |
22 | 21 | - "8.3" |
23 | 22 | - "8.4" |
24 | | - dependencies: |
25 | | - - "lowest" |
26 | | - - "highest" |
| 23 | + dependency-version: |
| 24 | + - "prefer-lowest" |
| 25 | + - "prefer-stable" |
27 | 26 | steps: |
28 | 27 | - uses: "actions/checkout@v4" |
29 | 28 | - uses: "shivammathur/setup-php@v2" |
30 | 29 | with: |
31 | 30 | php-version: "${{ matrix.php }}" |
32 | | - - uses: "ramsey/composer-install@v3" |
33 | | - with: |
34 | | - dependency-versions: "${{ matrix.dependencies }}" |
| 31 | + - name: Install dependencies |
| 32 | + run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction |
35 | 33 | - name: Run PHPStan |
36 | 34 | run: ./vendor/bin/phpstan analyse --error-format=github --configuration="./dev/config/phpstan.neon" |
37 | 35 |
|
38 | | - insights: |
39 | | - name: "Check insights with P${{ matrix.php }} and ${{ matrix.dependencies }} dependencies" |
40 | | - runs-on: ubuntu-latest |
41 | | - strategy: |
42 | | - fail-fast: true |
43 | | - matrix: |
44 | | - php: |
45 | | - - "8.3" |
46 | | - dependencies: |
47 | | - - "highest" |
48 | | - steps: |
49 | | - - uses: "actions/checkout@v4" |
50 | | - - uses: "shivammathur/setup-php@v2" |
51 | | - with: |
52 | | - php-version: "${{ matrix.php }}" |
53 | | - - uses: "ramsey/composer-install@v3" |
54 | | - with: |
55 | | - dependency-versions: "${{ matrix.dependencies }}" |
56 | | - - name: Run PHPInsights |
57 | | - run: ./vendor/bin/phpinsights --no-interaction --config-path="./dev/config/phpinsights.php" analyse |
58 | | - |
59 | 36 | format: |
60 | | - name: "Check format with P${{ matrix.php }} and ${{ matrix.dependencies }} dependencies" |
| 37 | + name: "Check format with P${{ matrix.php }} and ${{ matrix.dependency-version }} dependencies" |
61 | 38 | runs-on: ubuntu-latest |
62 | 39 | strategy: |
63 | 40 | fail-fast: true |
64 | 41 | matrix: |
65 | 42 | php: |
66 | 43 | - "8.3" |
67 | | - dependencies: |
68 | | - - "highest" |
69 | 44 | steps: |
70 | 45 | - uses: "actions/checkout@v4" |
71 | 46 | - uses: "shivammathur/setup-php@v2" |
72 | 47 | with: |
73 | 48 | php-version: "${{ matrix.php }}" |
74 | | - - uses: "ramsey/composer-install@v3" |
75 | | - with: |
76 | | - dependency-versions: "${{ matrix.dependencies }}" |
| 49 | + - name: Install dependencies |
| 50 | + run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction |
77 | 51 | - name: Run PHP-CS-Fixer |
78 | 52 | run: ./vendor/bin/php-cs-fixer check --config="./dev/config/php-cs-fixer.php" |
79 | 53 |
|
|
0 commit comments