You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
161 lines
5.4 KiB
YAML
161 lines
5.4 KiB
YAML
name: Running tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
- cron: '* * * * *'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
laravel:
|
|
- 8.*
|
|
- 7.*
|
|
- 6.*
|
|
- 5.8.*
|
|
- 5.7.*
|
|
- 5.6.*
|
|
- 5.5.*
|
|
- 5.4.*
|
|
- 5.3.*
|
|
- 5.2.*
|
|
- 5.1.*
|
|
- 5.0.*
|
|
- 4.2.*
|
|
- 4.1.*
|
|
- 4.0.*
|
|
os:
|
|
- ubuntu-latest
|
|
# - macos-latest
|
|
# - windows-latest
|
|
include:
|
|
- laravel: 8.*
|
|
testbench: 6.*
|
|
php: 7.3
|
|
phpunit: 9.3.*
|
|
|
|
- laravel: 7.*
|
|
testbench: 5.*
|
|
php: 7.3
|
|
phpunit: 8.4.*
|
|
|
|
- laravel: 6.*
|
|
testbench: 4.*
|
|
php: 7.2
|
|
phpunit: 8.3.*
|
|
|
|
- laravel: 5.8.*
|
|
testbench: 3.8.*
|
|
php: 7.1
|
|
phpunit: 7.5.*
|
|
|
|
- laravel: 5.7.*
|
|
testbench: 3.7.*
|
|
php: 7.1
|
|
phpunit: 7.0.*
|
|
|
|
- laravel: 5.6.*
|
|
testbench: 3.6.*
|
|
php: 7.1
|
|
phpunit: 7.0.*
|
|
|
|
- laravel: 5.5.*
|
|
testbench: 3.5.*
|
|
php: 7.0
|
|
phpunit: 6.0.*
|
|
|
|
- laravel: 5.4.*
|
|
testbench: 3.4.*
|
|
php: 5.6
|
|
phpunit: 5.7.*
|
|
|
|
- laravel: 5.3.*
|
|
testbench: 3.3.*
|
|
php: 5.6
|
|
phpunit: 4.8.*
|
|
|
|
- laravel: 5.2.*
|
|
testbench: 3.2.*
|
|
php: 5.5
|
|
phpunit: 4.8.*
|
|
|
|
- laravel: 5.1.*
|
|
testbench: 3.1.*
|
|
php: 5.5
|
|
phpunit: 4.8.*
|
|
|
|
- laravel: 5.0.*
|
|
testbench: 3.0.*
|
|
php: 5.4
|
|
phpunit: 4.8.*
|
|
|
|
- laravel: 4.2.*
|
|
testbench: 2.2.*
|
|
php: 5.4
|
|
phpunit: 4.8.*
|
|
|
|
- laravel: 4.1.*
|
|
testbench: 2.1.*
|
|
php: 5.4
|
|
phpunit: 4.8.*
|
|
|
|
- laravel: 4.0.*
|
|
testbench: 2.0.*
|
|
php: 5.4
|
|
phpunit: 4.8.*
|
|
|
|
name: ${{ matrix.os }} - L${{ matrix.laravel }} - P${{ matrix.php }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.composer/cache/files
|
|
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
|
|
ini-values: memory_limit=-1
|
|
coverage: none
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
composer require "laravel/framework:${{ matrix.laravel }}" "phpunit/phpunit:${{ matrix.phpunit }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
|
|
composer update --prefer-dist --no-interaction --no-suggest
|
|
|
|
- name: Execute tests
|
|
run: vendor/bin/phpunit --configuration=phpunit-laravel.xml
|
|
|
|
- name: Install Flasher Depencies
|
|
run: |
|
|
composer require "php-flasher/flasher:^0.9"
|
|
composer require "php-flasher/flasher-laravel:^0.9"
|
|
|
|
composer require "php-flasher/flasher-cli:^0.9"
|
|
composer require "php-flasher/flasher-cli-laravel:^0.9"
|
|
|
|
composer require "php-flasher/flasher-toastr:^0.9"
|
|
composer require "php-flasher/flasher-toastr-laravel:^0.9"
|
|
|
|
composer require "php-flasher/flasher-noty:^0.9"
|
|
composer require "php-flasher/flasher-noty-laravel:^0.9"
|
|
|
|
composer require "php-flasher/flasher-notyf:^0.9"
|
|
composer require "php-flasher/flasher-notyf-laravel:^0.9"
|
|
|
|
composer require "php-flasher/flasher-sweet-alert:^0.9"
|
|
composer require "php-flasher/flasher-sweet-alert-laravel:^0.9"
|
|
|
|
composer require "php-flasher/flasher-pnotify:^0.9"
|
|
composer require "php-flasher/flasher-pnotify-laravel:^0.9"
|