Skip to content

Support Laravel 11.x and future #38

Support Laravel 11.x and future

Support Laravel 11.x and future #38

Workflow file for this run

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