Skip to content

Fix CI

Fix CI #29

Workflow file for this run

name: "Validate"
on:
pull_request:
push:
branches:
- master
env:
REQUIRED_PHP_EXTENSIONS: mbstring, mysqli, pdo_sqlite
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php-version:
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
laravel-version:
# Purposefully omitting 5.5.*, it cannot be installed due to a conflict with orchestra/testbench
- 5.6.*
- 5.7.*
- 5.8.*
- ^6
- ^7
- ^8
- ^9
- ^10
- ^11
exclude:
- php-version: 7.1
laravel-version: ^6
- php-version: 7.1
laravel-version: ^7
- php-version: 7.1
laravel-version: ^8
- php-version: 7.1
laravel-version: ^9
- php-version: 7.1
laravel-version: ^10
- php-version: 7.1
laravel-version: ^11
- php-version: 7.2
laravel-version: ^8
- php-version: 7.2
laravel-version: ^9
- php-version: 7.2
laravel-version: ^10
- php-version: 7.2
laravel-version: ^11
- php-version: 7.3
laravel-version: ^9
- php-version: 7.3
laravel-version: ^10
- php-version: 7.3
laravel-version: ^11
- php-version: 7.4
laravel-version: ^9
- php-version: 7.4
laravel-version: ^10
- php-version: 7.4
laravel-version: ^11
- php-version: 8.0
laravel-version: 5.6.*
- php-version: 8.0
laravel-version: 5.7.*
- php-version: 8.0
laravel-version: 5.8.*
- php-version: 8.0
laravel-version: ^6
- php-version: 8.0
laravel-version: ^7
- php-version: 8.0
laravel-version: ^10
- php-version: 8.0
laravel-version: ^11
- php-version: 8.1
laravel-version: 5.6.*
- php-version: 8.1
laravel-version: 5.7.*
- php-version: 8.1
laravel-version: 5.8.*
- php-version: 8.1
laravel-version: ^6
- php-version: 8.1
laravel-version: ^7
- php-version: 8.1
laravel-version: ^11
- php-version: 8.2
laravel-version: 5.6.*
- php-version: 8.2
laravel-version: 5.7.*
- php-version: 8.2
laravel-version: 5.8.*
- php-version: 8.2
laravel-version: ^6
- php-version: 8.2
laravel-version: ^7
- php-version: 8.3
laravel-version: 5.6.*
- php-version: 8.3
laravel-version: 5.7.*
- php-version: 8.3
laravel-version: 5.8.*
- php-version: 8.3
laravel-version: ^6
- php-version: 8.3
laravel-version: ^7
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
extensions: ${{ env.REQUIRED_PHP_EXTENSIONS }}
php-version: ${{ matrix.php-version }}
- run: composer require illuminate/support:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress
- if: matrix.laravel-version == '^11'
run: vendor/bin/phpunit --coverage-filter=src
- if: matrix.laravel-version != '^11'
run: vendor/bin/phpunit
coverage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: pcov
extensions: ${{ env.REQUIRED_PHP_EXTENSIONS }}
php-version: 8.3
- uses: ramsey/composer-install@v3
- run: vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-filter=src
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}