|
6 | 6 | strategy: |
7 | 7 | fail-fast: false |
8 | 8 | matrix: |
9 | | - php: [ '8.4' ] |
| 9 | + php: ["8.4"] |
10 | 10 | name: Validate composer (${{ matrix.php}}) |
11 | 11 | steps: |
12 | 12 | - uses: actions/checkout@v4 |
|
42 | 42 | strategy: |
43 | 43 | fail-fast: false |
44 | 44 | matrix: |
45 | | - php: [ '8.4' ] |
| 45 | + php: ["8.4"] |
46 | 46 | steps: |
47 | 47 | - uses: actions/checkout@v4 |
48 | 48 |
|
@@ -77,49 +77,14 @@ jobs: |
77 | 77 | env: |
78 | 78 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
79 | 79 |
|
80 | | - php-cs-fixer: |
81 | | - runs-on: ubuntu-latest |
82 | | - strategy: |
83 | | - fail-fast: false |
84 | | - matrix: |
85 | | - php: [ '8.4' ] |
86 | | - name: PHP Coding Standards Fixer (PHP ${{ matrix.php }}) |
87 | | - steps: |
88 | | - - name: Checkout |
89 | | - uses: actions/checkout@v4 |
90 | | - |
91 | | - - name: Setup PHP, with composer and extensions |
92 | | - uses: shivammathur/setup-php@v2 |
93 | | - with: |
94 | | - php-version: ${{ matrix.php}} |
95 | | - extensions: apcu, ctype, iconv, imagick, json, pdo_sqlsrv, redis, soap, sqlsrv, xmlreader, zip |
96 | | - coverage: none |
97 | | - |
98 | | - - name: Get composer cache directory |
99 | | - id: composer-cache |
100 | | - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT |
101 | | - |
102 | | - - name: Cache dependencies |
103 | | - uses: actions/cache@v4 |
104 | | - with: |
105 | | - path: ${{ steps.composer-cache.outputs.dir }} |
106 | | - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} |
107 | | - restore-keys: ${{ runner.os }}-composer- |
108 | | - |
109 | | - - name: Install Dependencies |
110 | | - run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist |
111 | | - |
112 | | - - name: php-cs-fixer |
113 | | - run: composer coding-standards-check |
114 | | - |
115 | 80 | phpstan: |
116 | 81 | name: PHPStan (${{ matrix.php }}) |
117 | 82 | runs-on: ubuntu-latest |
118 | 83 | strategy: |
119 | 84 | fail-fast: false |
120 | 85 | matrix: |
121 | | - php: [ '8.4' ] |
122 | | - prefer: [ prefer-stable ] |
| 86 | + php: ["8.4"] |
| 87 | + prefer: [prefer-stable] |
123 | 88 | steps: |
124 | 89 | - uses: actions/checkout@v4 |
125 | 90 |
|
@@ -147,44 +112,14 @@ jobs: |
147 | 112 | - name: Run PHPStan |
148 | 113 | run: ./vendor/bin/phpstan |
149 | 114 |
|
150 | | - markdownlint: |
151 | | - name: Markdown Lint |
152 | | - runs-on: ubuntu-latest |
153 | | - steps: |
154 | | - - name: Checkout |
155 | | - uses: actions/checkout@v4 |
156 | | - - name: npm install |
157 | | - uses: actions/setup-node@v4 |
158 | | - with: |
159 | | - node-version: '22' |
160 | | - cache: 'npm' |
161 | | - - run: npm install |
162 | | - - name: markdownlint |
163 | | - run: npm run coding-standards-check |
164 | | - |
165 | | - changelog: |
166 | | - runs-on: ubuntu-latest |
167 | | - name: Changelog should be updated |
168 | | - steps: |
169 | | - - name: Checkout |
170 | | - uses: actions/checkout@v4 |
171 | | - with: |
172 | | - fetch-depth: 2 |
173 | | - |
174 | | - - name: Git fetch |
175 | | - run: git fetch |
176 | | - |
177 | | - - name: Check that changelog has been updated. |
178 | | - run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0 |
179 | | - |
180 | 115 | validate-doctrine-schema: |
181 | 116 | runs-on: ubuntu-latest |
182 | 117 | env: |
183 | 118 | DATABASE_URL: mysql://db:db@127.0.0.1:3306/db_test?serverVersion=mariadb-10.5.13 |
184 | 119 | strategy: |
185 | 120 | fail-fast: false |
186 | 121 | matrix: |
187 | | - php: [ '8.4' ] |
| 122 | + php: ["8.4"] |
188 | 123 | name: Validate Doctrine Schema (PHP ${{ matrix.php}}) |
189 | 124 | services: |
190 | 125 | mariadb: |
|
0 commit comments