|
56 | 56 | - name: Run vimeo/psalm on internal code |
57 | 57 | run: ./tools/psalm --config=.psalm/config.xml --no-progress --shepherd --show-info=false --stats |
58 | 58 |
|
| 59 | + test-generated-code: |
| 60 | + name: Test generated code |
| 61 | + |
| 62 | + runs-on: ubuntu-latest |
| 63 | + |
| 64 | + steps: |
| 65 | + - name: Checkout |
| 66 | + uses: actions/checkout@v3 |
| 67 | + |
| 68 | + - name: Install PHP with extensions |
| 69 | + uses: shivammathur/setup-php@v2 |
| 70 | + with: |
| 71 | + php-version: 8.1 |
| 72 | + extensions: none, curl, dom, json, libxml, mbstring, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter |
| 73 | + ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On |
| 74 | + tools: none |
| 75 | + |
| 76 | + - name: Install highest dependencies with composer |
| 77 | + run: php ./tools/composer update --no-ansi --no-interaction --no-progress |
| 78 | + |
| 79 | + - name: Generate global assert wrappers |
| 80 | + run: php build/scripts/generate-global-assert-wrappers.php |
| 81 | + |
| 82 | + - name: Assert that git tree is clean |
| 83 | + run: git diff || echo "Run 'php build/scripts/generate-global-assert-wrappers.php' to regenerate global assert wrappers!" |
| 84 | + |
59 | 85 | unit-tests: |
60 | 86 | name: Unit Tests |
61 | 87 |
|
@@ -261,32 +287,6 @@ jobs: |
261 | 287 | with: |
262 | 288 | token: ${{ secrets.CODECOV_TOKEN }} |
263 | 289 |
|
264 | | - test-generated-code: |
265 | | - name: Test generated code |
266 | | - |
267 | | - runs-on: ubuntu-latest |
268 | | - |
269 | | - steps: |
270 | | - - name: Checkout |
271 | | - uses: actions/checkout@v3 |
272 | | - |
273 | | - - name: Install PHP with extensions |
274 | | - uses: shivammathur/setup-php@v2 |
275 | | - with: |
276 | | - php-version: 8.1 |
277 | | - extensions: none, curl, dom, json, libxml, mbstring, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter |
278 | | - ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On |
279 | | - tools: none |
280 | | - |
281 | | - - name: Install highest dependencies with composer |
282 | | - run: php ./tools/composer update --no-ansi --no-interaction --no-progress |
283 | | - |
284 | | - - name: Generate global assert wrappers |
285 | | - run: php build/scripts/generate-global-assert-wrappers.php |
286 | | - |
287 | | - - name: Assert that git tree is clean |
288 | | - run: git diff || echo "Run 'php build/scripts/generate-global-assert-wrappers.php' to regenerate global assert wrappers!" |
289 | | - |
290 | 290 | build-phar: |
291 | 291 | name: Build PHAR |
292 | 292 |
|
|
0 commit comments