filters #31
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: Continuous Integration | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
phpunit: | |
name: PHPUnit Test Suite | |
runs-on: ubuntu-latest | |
env: | |
UID: 1001 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build and Run Docker Stack | |
run: docker-compose up -d | |
- name: Install Dependencies | |
run: docker-compose run --rm --user=app frontend composer install | |
- name: Install Front Dependencies | |
run: docker-compose run --rm --user=app frontend bin/console importmap:install | |
- name: Create Database | |
run: docker-compose run --rm --user=app frontend bin/db --env=test | |
- name: Load Fixtures | |
run: docker-compose run --rm --user=app frontend bin/console doctrine:fixtures:load --env=test --no-interaction | |
- name: Execute tests | |
run: docker-compose run --rm --user=app frontend vendor/bin/simple-phpunit | |
check-cs: | |
name: Check Coding Standards | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: PHP-CS-Fixer | |
uses: docker://oskarstark/php-cs-fixer-ga | |
with: | |
args: --config=.php-cs-fixer.php --diff --dry-run | |
phpstan: | |
name: PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install missing extensions from the docker image | |
run: docker run --rm -v `pwd`:/app --workdir /app composer/composer composer require symfony/polyfill-intl-normalizer symfony/polyfill-intl-icu --ignore-platform-reqs | |
- name: PHPStan | |
uses: docker://oskarstark/phpstan-ga | |
env: | |
REQUIRE_DEV: true | |
CHECK_PLATFORM_REQUIREMENTS: false |