Skip to content

Bump phpunit/phpunit from 11.5.46 to 12.5.4 #49

Bump phpunit/phpunit from 11.5.46 to 12.5.4

Bump phpunit/phpunit from 11.5.46 to 12.5.4 #49

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Symfony
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
symfony-tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:18
env:
POSTGRES_DB: app
POSTGRES_USER: app
POSTGRES_PASSWORD: app-pwd
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
php-version: [ 8.5 ]
steps:
- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: iconv, gd, pdo_pgsql, amqp, redis
tools: composer:v2
coverage: xdebug
- uses: actions/checkout@v4
- name: Copy .env.test.local
run: |
if [ ! -f .env.test.local ]; then
cp .env.test .env.test.local
fi
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-version }}-
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DATABASE_URL: postgresql://app:app-pwd@localhost:5432/app?serverVersion=18&charset=utf8
run: vendor/bin/phpunit