Bump @typescript-eslint/eslint-plugin from 6.11.0 to 6.13.1 #78
Workflow file for this run
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: PHP Linting and checks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
composer-install: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/ | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: zip | |
- name: Install Dependencies | |
env: | |
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.REPO_READ_ONLY_TOKEN }}"}}' | |
run: composer install --no-interaction --no-scripts --no-progress --prefer-dist | |
strategy: | |
max-parallel: 3 | |
matrix: | |
php-versions: [ '8.1', '8.2' ] | |
php-linting-psalm: | |
needs: | |
- composer-install | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/ | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Clear cache | |
run: | | |
APP_ENV=dev php bin/console cache:clear && APP_ENV=dev php bin/console cache:warmup | |
ls -laR var/cache | |
- name: Static analysis with Psalm | |
run: vendor/bin/psalm | |
strategy: | |
max-parallel: 3 | |
matrix: | |
php-versions: [ '8.1', '8.2' ] | |
php-linting-psr12: | |
needs: | |
- composer-install | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/ | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Coding style PSR12 Check | |
run: vendor/bin/phpcs | |
strategy: | |
max-parallel: 3 | |
matrix: | |
php-versions: [ '8.1', '8.2' ] | |
php-linting-phpcsfixer: | |
needs: | |
- composer-install | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/ | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: PHP CS Fixer | |
run: vendor/bin/php-cs-fixer fix --dry-run --diff --verbose | |
strategy: | |
max-parallel: 3 | |
matrix: | |
php-versions: [ '8.1', '8.2' ] | |
php-linting-phpmd: | |
needs: | |
- composer-install | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/ | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Mess detection | |
run: vendor/bin/phpmd src/ text ruleset.phpmd.xml | |
strategy: | |
max-parallel: 3 | |
matrix: | |
php-versions: [ '8.1', '8.2' ] | |
php-linting-stan: | |
needs: | |
- composer-install | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/ | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: copy env file | |
run: | | |
cp .env.ci .env.local | |
# change database url to sqlite | |
sed -i 's|^DATABASE_URL=.*|DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db|' .env.local | |
- name: Clear cache | |
run: APP_ENV=dev php bin/console cache:clear && APP_ENV=dev php bin/console cache:warmup | |
- name: Static analysis with PHPStan | |
run: vendor/bin/phpstan analyse | |
strategy: | |
max-parallel: 3 | |
matrix: | |
php-versions: [ '8.1', '8.2' ] | |
php-linting-twig: | |
needs: | |
- composer-install | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/ | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: copy env file | |
run: | | |
cp .env.ci .env.local | |
# change database url to sqlite | |
sed -i 's|^DATABASE_URL=.*|DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db|' .env.local | |
- name: Twig linter | |
run: | | |
bin/console cache:clear | |
bin/console cache:warmup | |
bin/console lint:twig templates | |
env: | |
APP_ENV: prod | |
APP_DEBUG: false | |
strategy: | |
max-parallel: 3 | |
matrix: | |
php-versions: [ '8.1', '8.2' ] | |
php-linting-translations: | |
needs: | |
- composer-install | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/ | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: copy env file | |
run: | | |
cp .env.ci .env.local | |
# change database url to sqlite | |
sed -i 's|^DATABASE_URL=.*|DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db|' .env.local | |
- name: Twig linter | |
run: | | |
bin/console cache:clear | |
bin/console cache:warmup | |
bin/console lint:yaml translations | |
env: | |
APP_ENV: prod | |
APP_DEBUG: false | |
strategy: | |
max-parallel: 3 | |
matrix: | |
php-versions: [ '8.1', '8.2' ] |