2021-10-08 13:30:10 +02:00
|
|
|
name: Tests
|
2020-04-12 23:49:26 +02:00
|
|
|
|
2022-01-19 22:45:32 +01:00
|
|
|
on: [push]
|
2020-04-12 23:49:26 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-01-19 22:45:32 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-04-18 23:21:19 +02:00
|
|
|
strategy:
|
2022-01-19 22:45:32 +01:00
|
|
|
fail-fast: false
|
2020-04-18 23:21:19 +02:00
|
|
|
matrix:
|
2022-01-19 22:45:32 +01:00
|
|
|
os: [ubuntu-latest]
|
2021-12-17 15:36:46 +01:00
|
|
|
php: [7.3, 7.4, 8.0, 8.1]
|
2021-07-07 00:17:33 +02:00
|
|
|
illuminate_version: [6.*, 8.*]
|
2022-01-19 22:45:32 +01:00
|
|
|
stability: [prefer-lowest, prefer-stable]
|
2022-01-19 23:01:33 +01:00
|
|
|
exclude:
|
|
|
|
- php: 8.1
|
|
|
|
stability: prefer-lowest
|
|
|
|
- php: 8.0
|
|
|
|
stability: prefer-lowest
|
2022-01-19 22:45:32 +01:00
|
|
|
|
2022-01-19 20:43:55 +01:00
|
|
|
exclude:
|
|
|
|
# Exclude unsupported combination
|
|
|
|
# https://laravel.com/docs/8.x/releases#support-policy
|
|
|
|
- illuminate_version: 6.*
|
|
|
|
php: 8.1
|
|
|
|
|
|
|
|
# "Added PHP 8.1 Support from v8.67.0"
|
|
|
|
# https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md#v8670-2021-10-22
|
|
|
|
# see also `matrix.include` section
|
|
|
|
- illuminate_version: 8.*
|
|
|
|
php: 8.1
|
|
|
|
|
|
|
|
include:
|
|
|
|
# "Added PHP 8.1 Support from v8.67.0"
|
|
|
|
- illuminate_version: ^8.67.0
|
|
|
|
php: 8.1
|
2022-01-19 22:45:32 +01:00
|
|
|
stability: ''
|
|
|
|
|
2022-01-19 20:43:55 +01:00
|
|
|
- illuminate_version: ^8.67.0
|
|
|
|
php: 8.1
|
2022-01-19 22:45:32 +01:00
|
|
|
stability: --prefer-lowest
|
2020-04-18 23:21:19 +02:00
|
|
|
|
2022-01-19 22:45:32 +01:00
|
|
|
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
|
2020-04-12 23:49:26 +02:00
|
|
|
|
|
|
|
steps:
|
2020-06-10 09:23:16 +02:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php }}
|
|
|
|
coverage: none
|
2020-06-10 10:05:47 +02:00
|
|
|
tools: composer:v2
|
2020-04-12 23:49:26 +02:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2022-01-19 22:45:32 +01:00
|
|
|
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
|
2020-04-12 23:49:26 +02:00
|
|
|
|
|
|
|
- name: Run Tests
|
2021-06-14 22:54:19 +02:00
|
|
|
run: composer test
|