2021-10-08 13:30:10 +02:00
|
|
|
name: Tests
|
2020-04-12 23:49:26 +02:00
|
|
|
|
2022-01-19 23:46:53 +01:00
|
|
|
on: [push, pull_request]
|
2020-04-12 23:49:26 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-02-10 18:12:29 +01:00
|
|
|
build:
|
2022-02-14 22:47:55 +01:00
|
|
|
runs-on: ubuntu-latest
|
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-02-14 23:37:25 +01:00
|
|
|
php: [8.0, 8.1]
|
2022-04-07 22:17:41 +02:00
|
|
|
illuminate_version: [8.67.*, 9.7.*]
|
2022-01-19 22:45:32 +01:00
|
|
|
stability: [prefer-lowest, prefer-stable]
|
2020-04-18 23:21:19 +02:00
|
|
|
|
2022-01-19 10:43:42 +01:00
|
|
|
name: P${{ matrix.php }} | I ${{ matrix.illuminate_version }} | ${{ matrix.stability }}
|
2020-04-12 23:49:26 +02:00
|
|
|
|
|
|
|
steps:
|
2022-02-10 18:12:29 +01:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: ${{ matrix.php }}
|
|
|
|
coverage: none
|
|
|
|
tools: composer:v2
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2022-02-14 23:26:00 +01:00
|
|
|
composer require "laravel/framework:${{ matrix.illuminate_version }}" "illuminate/container:${{ matrix.illuminate_version }}" "illuminate/contracts:${{ matrix.illuminate_version }}" "illuminate/database:${{ matrix.illuminate_version }}" "illuminate/http:${{ matrix.illuminate_version }}" "illuminate/support:${{ matrix.illuminate_version }}" --no-interaction --no-progress --prefer-dist --${{ matrix.stability }}
|
2022-02-10 18:12:29 +01:00
|
|
|
|
|
|
|
- name: Run Tests
|
|
|
|
run: composer test
|