Bump nelmio/api-doc-bundle from 4.28.0 to 4.33.0 in /app #106
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: "PHPUnit/PHPStan" | |
on: | |
push: | |
branches: | |
pull_request: | |
branches: | |
- "main" | |
- "develop" | |
permissions: | |
contents: "read" | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
unit_tests: | |
name: "Unit and functional tests" | |
env: | |
APP_ENV: test | |
services: | |
mysql: | |
image: mysql:8 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: false | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: dam_test | |
ports: | |
- 3306/tcp | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
strategy: | |
#fail-fast: false | |
matrix: | |
php-version: | |
- "8.2" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Set up PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
- name: "Checkout code" | |
uses: "actions/checkout@v4" | |
- name: "Install dependencies" | |
uses: "ramsey/composer-install@v3" | |
with: | |
working-directory: "app" | |
- name: Run Migration | |
working-directory: "app" | |
run: | | |
php bin/console --env=test doctrine:migrations:migrate --no-interaction | |
env: | |
DATABASE_URL: mysql://root:[email protected]:${{ job.services.mysql.ports['3306'] }}/dam | |
- name: "Execute unit tests" | |
working-directory: "app" | |
run: "vendor/bin/phpunit --testdox" | |
env: | |
DATABASE_URL: mysql://root:[email protected]:${{ job.services.mysql.ports['3306'] }}/dam | |
static_analysis: | |
name: "Static Analysis" | |
runs-on: "ubuntu-latest" | |
env: | |
APP_ENV: test | |
steps: | |
- name: "Set up PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "8.2" | |
coverage: "none" | |
- name: "Checkout code" | |
uses: "actions/checkout@v3" | |
- name: "Check JSON files" | |
run: | | |
find . -type f -name '*.json' | xargs -t -L 1 -- php -r 'json_decode(file_get_contents($argv[1]), null, 512, JSON_THROW_ON_ERROR);' | |
- name: "Validate Composer configuration" | |
working-directory: "app" | |
run: "composer validate --no-interaction" | |
- name: "Install dependencies" | |
uses: "ramsey/composer-install@v3" | |
with: | |
working-directory: "app" | |
- name: "Install code style dependencies" | |
uses: "ramsey/composer-install@v3" | |
with: | |
working-directory: "app/tools/php-cs-fixer" | |
- name: "Check PSR-4 mapping" | |
working-directory: "app" | |
run: "composer dump-autoload --no-interaction --optimize --strict-psr" | |
- name: "Perform static analysis" | |
working-directory: "app" | |
run: "vendor/bin/phpstan analyse src tests -c phpstan.neon -l 9" | |
- name: "Code Style Check" | |
working-directory: "app" | |
run: "tools/php-cs-fixer/vendor/bin/php-cs-fixer check src --rules=@Symfony" | |
- name: "Validate Twig" | |
working-directory: "app" | |
run: "bin/console lint:twig templates" |