mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
- also drop dedicated testbench version, composer can figure it out itself https://laravel.com/docs/7.x/releases#support-policy Only 5.5 receives security fixes until 2020-08-30, everything else < 6 isn't supported anymore. Therefore I dropped all versions not officially supported. I also find the change in the matrix more readable without having to mentally parse a set of a lot "includes", I think this clarifies the intent better. This also results in more jobs are more (correctly allowed) variations are now covered.
65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
name: Tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
php-tests:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
env:
|
|
COMPOSER_NO_INTERACTION: 1
|
|
|
|
strategy:
|
|
matrix:
|
|
php: [7.4, 7.3, 7.2]
|
|
laravel: [7.*, 6.*, 5.5.*]
|
|
dependency-version: [prefer-lowest, prefer-stable]
|
|
exclude:
|
|
- laravel: 5.5.*
|
|
php: 7.4
|
|
|
|
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
coverage: none
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
composer remove phpro/grumphp vimeo/psalm --no-update --dev
|
|
composer require "laravel/framework:${{ matrix.laravel }}" --no-update --no-progress
|
|
composer update --${{ matrix.dependency-version }} --prefer-dist --no-suggest --no-progress
|
|
|
|
- name: Execute Unit Tests
|
|
run: composer test
|
|
|
|
check-style:
|
|
name: Check Code Style
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
COMPOSER_NO_INTERACTION: 1
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 7.4
|
|
coverage: none
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
composer remove phpro/grumphp vimeo/psalm --no-update --dev
|
|
composer update --prefer-dist --no-suggest --no-progress
|
|
|
|
- run: composer check-style
|