Working, Working #2917
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: Code Analysis | |
on: | |
pull_request: null | |
push: | |
branches: | |
- master | |
jobs: | |
code_analysis: | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ['7.2', '8.0'] | |
actions: | |
- | |
name: Coding Standard | |
# tip: add "--ansi" to commands in CI to make them full of colors | |
run: vendor/bin/ecs check src --ansi | |
- | |
name: PHPStan | |
run: vendor/bin/phpstan analyse --ansi | |
- | |
name: Check composer.json and composer.lock | |
run: composer validate --strict --ansi | |
- | |
name: Check YAML configs files | |
run: bin/console lint:yaml config --ansi --parse-tags | |
- | |
name: Check TWIG files | |
run: bin/console lint:twig templates --ansi | |
- | |
name: Check XLIFF translation files | |
run: bin/console lint:xliff translations --ansi | |
- | |
name: Check Doctrine Mapping | |
run: bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction --ansi | |
name: ${{ matrix.actions.name }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# see https://github.com/shivammathur/setup-php | |
- uses: shivammathur/setup-php@v2 | |
with: | |
# test the lowest version, to make sure checks pass on it | |
php-version: ${{ matrix.php-version }} | |
extensions: json, mbstring, pdo, curl, pdo_sqlite | |
coverage: none | |
- run: composer install --no-progress --ansi | |
- run: ${{ matrix.actions.run }} |