Skip to content

Drop Laravel 8.x & 9.x support #104

Drop Laravel 8.x & 9.x support

Drop Laravel 8.x & 9.x support #104

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: ['8.3', '8.2', '8.1']
laravel: [^10.0, ^11.0]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- php: 8.1
laravel: ^11.0
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: pcov
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:>=2.62.1" --no-interaction --no-update --ignore-platform-reqs
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --ignore-platform-reqs
- name: Execute tests
run: vendor/bin/phpunit
- name: Upload PHP test coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}