more ci
This commit is contained in:
parent
31ffc624c5
commit
709c2fbae1
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@ -15,20 +15,22 @@ jobs:
|
|||||||
php-versions: ['7.2', '7.3']
|
php-versions: ['7.2', '7.3']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@master
|
uses: shivammathur/setup-php@master
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php-versions }}
|
php-version: ${{ matrix.php-versions }}
|
||||||
extension-csv: mbstring, dom, fileinfo
|
extension-csv: mbstring, dom, fileinfo
|
||||||
coverage: xdebug
|
|
||||||
|
- name: Disable XDebug
|
||||||
|
run: phpenv config-rm xdebug.ini || return
|
||||||
|
|
||||||
- name: Copy .env
|
- name: Copy .env
|
||||||
run: php -r "file_exists('.env') || copy('.env.testing', '.env');"
|
run: cp .env.testing .env
|
||||||
|
|
||||||
- name: Install composer
|
- name: Install composer
|
||||||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
|
run: composer test
|
||||||
|
|
||||||
- name: Execute tests
|
- name: Execute tests
|
||||||
run: vendor/bin/phpunit
|
run: vendor/bin/phpunit
|
||||||
|
@ -18,7 +18,7 @@ before_install:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cp .env.testing .env
|
- cp .env.testing .env
|
||||||
- composer test --no-interaction
|
- composer test
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- vendor/bin/phpunit
|
- vendor/bin/phpunit
|
@ -112,7 +112,7 @@
|
|||||||
"composer dump-autoload"
|
"composer dump-autoload"
|
||||||
],
|
],
|
||||||
"test": [
|
"test": [
|
||||||
"composer install --no-scripts",
|
"composer install --no-interaction --no-scripts --no-suggest",
|
||||||
"Illuminate\\Foundation\\ComposerScripts::postInstall",
|
"Illuminate\\Foundation\\ComposerScripts::postInstall",
|
||||||
"php artisan clear-compiled",
|
"php artisan clear-compiled",
|
||||||
"composer dump-autoload"
|
"composer dump-autoload"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user