mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
* gha: be more specific which OS to use Avoids "surprises" when Github changes the underlying version, like they currently announce with a warning: > Ubuntu-latest workflows will use Ubuntu-20.04 soon. For more details, see https://github.com/actions/virtual-environments/issues/1816 Note: basically right now "latest" is actually 18.04 and not 20.04 * composer fix-style * gha: require league/flysystem:^1 for lumen 2.* doesn't work out of the box * gha: explicit version of composer isn't necessary anymore v2 is already the default * Be explicit to require the pdo SQLite extension for tests Co-authored-by: laravel-ide-helper <[email protected]>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
php-tests:
|
|
runs-on: ubuntu-20.04
|
|
timeout-minutes: 15
|
|
env:
|
|
COMPOSER_NO_INTERACTION: 1
|
|
|
|
strategy:
|
|
matrix:
|
|
php: [7.4, 7.3, 7.2]
|
|
laravel: [8.*, 7.*, 6.*]
|
|
dependency-version: [prefer-lowest, prefer-stable]
|
|
exclude:
|
|
- laravel: 8.*
|
|
php: 7.2
|
|
|
|
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
|
|
extensions: pdo_sqlite
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
composer remove vimeo/psalm --no-update --dev
|
|
composer require "laravel/framework:${{ matrix.laravel }}" --no-update --no-progress
|
|
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
|
|
|
|
- name: Execute Unit Tests
|
|
run: composer test-ci
|