ci: update symfony.yml

This commit is contained in:
Maël Gangloff 2024-12-31 00:11:24 +01:00
parent 950106bf61
commit 2e22147f00
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629
2 changed files with 15 additions and 32 deletions

View File

@ -1,31 +0,0 @@
name: ESLint
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache Node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install frontend dependencies
run: yarn install
- name: Run ESLint
run: yarn run eslint

View File

@ -10,7 +10,7 @@ permissions:
contents: read
jobs:
symfony-tests:
symfony:
runs-on: ubuntu-latest
steps:
- name: Checkout code
@ -33,8 +33,22 @@ jobs:
- name: Install backend dependencies
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
- name: Cache Node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install frontend dependencies
run: 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 ESLint
run: yarn run eslint