Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: Continuous Integration Laravel 6
- on: [push]
- jobs:
- laravel-tests:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v1
- - name: Copy ENV Laravel Configuration for CI
- run: php -r "file_exists('.env') || copy('.env.ci', '.env');"
- - name: Install Dependencies (PHP vendors)
- run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- - name: Generate key
- run: php artisan key:generate
- - name: Create DB and schemas
- run: |
- mkdir -p database
- touch database/database.sqlite
- php artisan migrate
- - name: Execute tests (Unit and Feature tests) via PHPUnit
- run: vendor/bin/phpunit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement