mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
* tests: running in CI should not create but rather fail on missing snapshots Otherwise they get created on the CI infrastructure but that's it, the build won't fail although it was forgotten to add the snapshot. * Bump minimum phpunit version which correctly accepts the `-d` parameter The `prefer-lowest` version we get with L6 is 8.0.0 which throws this error: ``` PHP Fatal error: Uncaught TypeError: ini_set() expects parameter 2 to be string, bool given in /home/runner/work/laravel-ide-helper/laravel-ide-helper/vendor/phpunit/phpunit/src/TextUI/Command.php:379 ``` * Update composer.json Co-authored-by: Barry vd. Heuvel <[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-latest
|
|
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
|
|
tools: composer:v2
|
|
|
|
- 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
|