Update phpunit/phpunit to v12.3.13 #220
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
DATABASE_URL: mysql://root:@127.0.0.1:3306/main?serverVersion=8.0.32&charset=utf8mb4 | |
jobs: | |
tests: | |
name: Tests | |
# https://hub.docker.com/_/ubuntu/ | |
runs-on: ubuntu-latest | |
services: | |
# https://hub.docker.com/_/postgres/ | |
postgresql: | |
image: mysql:9 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
ports: | |
- 3306:3306 | |
strategy: | |
fail-fast: true | |
matrix: | |
php-versions: ['8.4'] | |
steps: | |
# —— Setup Github actions 🐙 ————————————————————————————————————————————— | |
# https://github.com/actions/checkout (official) | |
- name: Checkout | |
uses: actions/checkout@v5 | |
# https://github.com/shivammathur/setup-php (community) | |
- name: Setup PHP, extensions and composer with shivammathur/setup-php | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom, filter, gd, iconv, json, mbstring, pdo, xdebug | |
tools: composer:v2 | |
env: | |
update: true | |
# —— Composer 🧙️ ————————————————————————————————————————————————————————— | |
- name: Install Composer dependencies | |
run: composer install | |
# —— Tests ✅ ——————————————————————————————————————————————————————————— | |
- name: Create database | |
run: bin/console doctrine:database:create --if-not-exists --env=test | |
- name: Run migrations | |
run: bin/console doctrine:migrations:migrate --no-interaction --env=test | |
- name: Insert data with symfony command in test env | |
run: bin/console doctrine:query:sql "INSERT INTO dummy (id, name) VALUES (1, 'Foo'), (2, 'Bar'), (3, 'Baz');" --env=test | |
- name: Run phpunit | |
run: SYMFONY_DEPRECATIONS_HELPER=disabled bin/phpunit |