mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
ci: update symfony.yml
This commit is contained in:
28
.github/workflows/symfony.yml
vendored
28
.github/workflows/symfony.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Symfony
|
name: Symfony CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -11,6 +11,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
symfony:
|
symfony:
|
||||||
|
name: Symfony Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -33,6 +34,22 @@ jobs:
|
|||||||
- name: Install backend dependencies
|
- name: Install backend dependencies
|
||||||
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
|
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
|
||||||
|
|
||||||
|
- name: Run PHP-CS-Fixer
|
||||||
|
run: vendor/bin/php-cs-fixer fix --dry-run --diff
|
||||||
|
|
||||||
|
- name: Run PHPStan
|
||||||
|
run: vendor/bin/phpstan analyse
|
||||||
|
|
||||||
|
- name: Run PHPUnit
|
||||||
|
run: vendor/bin/phpunit --coverage-text
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
name: Frontend Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Node modules
|
- name: Cache Node modules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
@@ -44,14 +61,5 @@ jobs:
|
|||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
run: npm install --global yarn && yarn install
|
run: npm install --global yarn && yarn install
|
||||||
|
|
||||||
- name: Run PHP-CS-Fixer
|
|
||||||
run: vendor/bin/php-cs-fixer fix --dry-run --diff
|
|
||||||
|
|
||||||
- name: Run PHPStan
|
|
||||||
run: vendor/bin/phpstan analyse
|
|
||||||
|
|
||||||
- name: Run PHPUnit
|
|
||||||
run: vendor/bin/phpunit
|
|
||||||
|
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: yarn run eslint
|
run: yarn run eslint
|
||||||
Reference in New Issue
Block a user