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
|
2020-04-18 23:21:19 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-09-08 23:48:52 +02:00
|
|
|
php: [7.3, 7.4]
|
2020-10-19 16:23:54 +02:00
|
|
|
illuminate_version: [7.*, 8.*]
|
2020-05-27 07:43:02 +02:00
|
|
|
composer_flags: ['', '--prefer-lowest']
|
2020-04-18 23:21:19 +02:00
|
|
|
|
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:
|
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
|
2020-04-18 23:21:19 +02:00
|
|
|
run: |
|
2020-06-10 10:05:47 +02:00
|
|
|
composer install
|
|
|
|
composer update "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-stable --prefer-dist ${{ matrix.composer_flags }}
|
2020-04-12 23:49:26 +02:00
|
|
|
|
|
|
|
- name: Run Tests
|
|
|
|
run: vendor/bin/codecept run
|