Merge pull request #65 from vinceh121/bugfix/tld #537
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Symfony | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
symfony: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cache Composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
extensions: mbstring, xml, intl, curl, iconv, pdo_pgsql, sodium, zip, http | |
- 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 |