Tweak Action to run improved tests
This commit is contained in:
parent
9f66d342d8
commit
7a41cc2a2d
1 changed files with 3 additions and 5 deletions
8
.github/workflows/run-tests.yml
vendored
8
.github/workflows/run-tests.yml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:13.2
|
image: postgres:13.4
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
@ -36,15 +36,13 @@ jobs:
|
||||||
- name: Copy .env
|
- name: Copy .env
|
||||||
run: php -r "file_exists('.env') || copy('.env.github', '.env');"
|
run: php -r "file_exists('.env') || copy('.env.github', '.env');"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install -q --no-ansi --no-interaction --no-progress
|
run: composer install --quiet --no-ansi --no-interaction --no-progress
|
||||||
- name: Generate key
|
- name: Generate key
|
||||||
run: php artisan key:generate
|
run: php artisan key:generate
|
||||||
- name: Setup directory permissions
|
- name: Setup directory permissions
|
||||||
run: chmod -R 777 storage bootstrap/cache
|
run: chmod -R 777 storage bootstrap/cache
|
||||||
- name: Setup test database
|
- name: Setup test database
|
||||||
run: |
|
run: php artisan migrate
|
||||||
php artisan migrate
|
|
||||||
php artisan db:seed
|
|
||||||
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
||||||
run: vendor/bin/phpunit
|
run: vendor/bin/phpunit
|
||||||
- name: Run phpcs
|
- name: Run phpcs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue