Skip to content

Commit

Permalink
more ci
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Nov 19, 2019
1 parent 31ffc62 commit 709c2fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@ jobs:
php-versions: ['7.2', '7.3']

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extension-csv: mbstring, dom, fileinfo
coverage: xdebug

- name: Disable XDebug
run: phpenv config-rm xdebug.ini || return

- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.testing', '.env');"
run: cp .env.testing .env

- 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
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ before_install:

before_script:
- cp .env.testing .env
- composer test --no-interaction
- composer test

script:
- vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"composer dump-autoload"
],
"test": [
"composer install --no-scripts",
"composer install --no-interaction --no-scripts --no-suggest",
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan clear-compiled",
"composer dump-autoload"
Expand Down

0 comments on commit 709c2fb

Please sign in to comment.