Add converter_templates
config parameter
#513
This file contains hidden or 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: 'Static Analysis' | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- 'main' | |
- '[0-9]+.x' | |
jobs: | |
static-analysis: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'Checkout' | |
uses: 'actions/checkout@v3' | |
- name: 'Install PHP' | |
uses: 'shivammathur/setup-php@v2' | |
with: | |
php-version: '8.1' | |
coverage: 'none' | |
extensions: 'mbstring' | |
tools: 'composer:v2' | |
- name: 'Get composer cache directory' | |
id: 'composer-cache' | |
run: 'echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT' | |
- name: 'Cache dependencies' | |
uses: 'actions/cache@v3' | |
with: | |
path: '${{ steps.composer-cache.outputs.dir }}' | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: '${{ runner.os }}-composer-' | |
- name: 'Install dependencies' | |
run: 'composer install --prefer-dist' | |
- name: 'Run composer audit' | |
run: 'composer audit --format=plain' | |
- name: 'Run yaml-lint' | |
run: 'vendor/bin/yaml-lint app/config --parse-tags' | |
- name: 'Run PHP Parallel Lint' | |
run: 'vendor/bin/parallel-lint app bin src tests' | |
- name: 'Run PHP CodeSniffer' | |
run: 'vendor/bin/phpcs' | |
- name: 'Run PHPStan' | |
run: 'vendor/bin/phpstan analyse' |