MEM-151 support php-8.4 #6
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: '*' | |
| jobs: | |
| test: | |
| name: PHP ${{ matrix.php-version }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| matrix: | |
| php-version: | |
| - 8.0 | |
| - 8.1 | |
| - 8.2 | |
| - 8.3 | |
| - 8.4 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install PHP with extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| coverage: pcov | |
| tools: composer:v2 | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ matrix.php-versions }}-composer | |
| - name: Install dependencies | |
| if: steps.composer-cache.outputs.cache-hit != 'true' | |
| run: composer install --prefer-dist --no-progress | |
| - name: Setup PCOV | |
| run: | | |
| composer require pcov/clobber | |
| vendor/bin/pcov clobber | |
| continue-on-error: true | |
| - name: Run Tests | |
| run: composer tests | |
| - name: Check coding style | |
| run: composer coding-style |