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

37 lines
1.0 KiB
YAML
Raw Normal View History

name: Tests
2020-04-12 23:49:26 +02:00
on:
push:
pull_request:
2020-06-06 22:40:00 +02:00
schedule:
- cron: '0 0 * * *'
2020-04-12 23:49:26 +02:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2021-10-08 12:48:55 +02:00
php: [7.3, 7.4, 8.0]
illuminate_version: [6.*, 8.*]
2020-05-27 07:43:02 +02:00
composer_flags: ['', '--prefer-lowest']
name: ${{ matrix.php }} | Illuminate ${{ matrix.illuminate_version }} | ${{ matrix.composer_flags }}
2020-04-12 23:49:26 +02:00
steps:
- 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
run: |
2021-06-14 20:59:24 +02:00
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.composer_flags }}
2020-04-12 23:49:26 +02:00
- name: Run Tests
2021-06-14 22:54:19 +02:00
run: composer test