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

30 lines
995 B
YAML
Raw Normal View History

2020-04-12 23:49:26 +02:00
name: Run Tests
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:
php: [7.1, 8.0]
illuminate_version: [5.8.*, 6.*, 7.*]
2020-05-27 07:43:02 +02:00
composer_flags: ['', '--prefer-lowest']
2020-05-27 07:43:02 +02:00
name: PHP ${{ matrix.php }} | Illuminate ${{ matrix.illuminate_version }} | Composer Flags ${{ matrix.composer_flags }}
2020-04-12 23:49:26 +02:00
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
export COMPOSER_ROOT_VERSION=dev-master
2020-05-27 07:43:02 +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 --no-suggest --prefer-stable --prefer-dist ${{ matrix.composer_flags }}
2020-04-12 23:49:26 +02:00
- name: Run Tests
run: vendor/bin/codecept run