Merge pull request #1279 from j0k3r/dependabot/composer/symfony/http-… #1451
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: CI | |
on: | |
pull_request: | |
branches: | |
- "master" | |
push: | |
branches: | |
- "master" | |
env: | |
fail-fast: true | |
APP_ENV: test | |
jobs: | |
phpunit: | |
name: PHPUnit (PHP ${{ matrix.php }}) | |
runs-on: "ubuntu-20.04" | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
ports: | |
- 3306:3306 | |
rabbitmq: | |
image: rabbitmq:3-alpine | |
ports: | |
- 5672:5672 | |
redis: | |
image: redis:6-alpine | |
ports: | |
- 6379:6379 | |
strategy: | |
matrix: | |
php: | |
- "7.4" | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
coverage: "none" | |
tools: composer:v2 | |
extensions: pdo, pdo_mysql, curl, redis, amqp | |
ini-values: "date.timezone=Europe/Paris" | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
- name: Install dependencies with Yarn | |
run: yarn install | |
- name: Install dependencies with Composer | |
uses: ramsey/composer-install@v3 | |
- name: Create database | |
run: php bin/console doctrine:database:create --env=test | |
- name: Create schema | |
run: php bin/console doctrine:schema:create --env=test | |
- name: Load fixtures | |
run: php bin/console doctrine:fixtures:load --env=test -n | |
- name: Setup messenger queue | |
run: php bin/console messenger:setup-transports --env=dev | |
- name: Run PHPUnit | |
run: php bin/simple-phpunit -v |