fix: harden GitHub Actions against supply chain attacks #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| tests: | |
| name: PHP ${{ matrix.php }} / TYPO3 ${{ matrix.typo3 }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.2', '8.3', '8.4'] | |
| typo3: ['^13.4', '^14.0'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: mbstring, intl, pdo_sqlite | |
| tools: composer:v2 | |
| - name: Set TYPO3 version | |
| run: composer require typo3/cms-core:${{ matrix.typo3 }} --no-update | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: PHPStan | |
| run: composer ci:phpstan | |
| - name: PHP-CS-Fixer | |
| run: composer ci:cgl | |
| - name: Unit tests | |
| run: composer ci:tests | |
| - name: Functional tests | |
| run: composer ci:tests:functional | |
| env: | |
| typo3DatabaseDriver: pdo_sqlite |