psalm-plugin-laravel/.github/workflows/test.yml

63 lines
1.9 KiB
YAML
Raw Normal View History

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:
runs-on: ubuntu-latest
strategy:
2022-01-19 22:45:32 +01:00
fail-fast: false
matrix:
2021-12-17 15:36:46 +01:00
php: [7.3, 7.4, 8.0, 8.1]
illuminate_version: [6.*, 8.*]
2022-01-19 22:45:32 +01:00
stability: [prefer-lowest, prefer-stable]
exclude:
2022-02-10 19:54:08 +01:00
- illuminate_version: 6.*
2022-02-10 19:56:06 +01:00
php: 7.3
stability: prefer-stable
2022-02-10 19:54:08 +01:00
- illuminate_version: 6.*
2022-02-10 19:56:06 +01:00
php: 7.4
stability: prefer-stable
2022-02-10 19:54:08 +01:00
- illuminate_version: 6.*
2022-02-10 19:56:06 +01:00
php: 8.0
stability: prefer-stable
2022-02-10 19:54:08 +01:00
2022-01-19 20:43:55 +01:00
# 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
2022-02-10 19:56:06 +01:00
2022-01-19 20:43:55 +01:00
include:
# "Added PHP 8.1 Support from v8.67.0"
- illuminate_version: ^8.67.0
php: 8.1
2022-02-10 18:12:29 +01:00
stability: 'prefer-stable'
2022-02-10 18:12:29 +01:00
name: ${{ matrix.php }} | Illuminate ${{ 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: |
composer require "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 }}
- name: Run Tests
run: composer test