Support Laravel 11.x and future #38
Workflow file for this run
This file contains 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: Tests | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 15 | |
fail-fast: false | |
matrix: | |
php: ['8.0', '8.1', '8.2'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Setup PHP | |
uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Dependency Cache | |
uses: actions/cache@v1 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer-${{ matrix.php }} | |
- name: Install Dependencies | |
run: composer install --no-interaction --prefer-dist --no-suggest | |
- name: Run Unit Tests | |
run: php vendor/bin/phpunit | |
coverage: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 15 | |
fail-fast: false | |
matrix: | |
php: ['8.1'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Setup PHP | |
uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: xdebug | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Dependency Cache | |
uses: actions/cache@v1 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer-${{ matrix.php }} | |
- name: Install Dependencies | |
run: composer install --no-interaction --prefer-dist --no-suggest | |
- name: Run Unit Tests | |
run: php vendor/bin/phpunit --coverage-clover=clover.xml |