Run phpcs on the code as well
This commit is contained in:
parent
030d44355a
commit
59ad3121d9
1 changed files with 3 additions and 2 deletions
5
.github/workflows/run-tests.yml
vendored
5
.github/workflows/run-tests.yml
vendored
|
@ -1,7 +1,6 @@
|
||||||
name: Run Tests
|
name: Run Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -35,7 +34,7 @@ jobs:
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '7.4'
|
php-version: '7.4'
|
||||||
tools: pecl
|
tools: pecl, phpcs
|
||||||
extensions: imagick
|
extensions: imagick
|
||||||
- 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');"
|
||||||
|
@ -51,3 +50,5 @@ jobs:
|
||||||
php artisan db:seed
|
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
|
||||||
|
run: phpcs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue