apply latest cs fixer #215
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: Test application | |
on: | |
pull_request: | |
push: | |
branches: | |
- '[0-9]+.x' | |
- '[0-9]+.[0-9]+' | |
- '[0-9]+.[0-9]+.x' | |
jobs: | |
test: | |
name: 'PHP ${{ matrix.php-version }}, Database ${{ matrix.db }} ${{ matrix.dependencies }}' | |
runs-on: ubuntu-20.04 | |
env: | |
SYMFONY_DEPRECATIONS_HELPER: ${{ matrix.symfony-deprecation-helper }} | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: | |
- '8.0' | |
- '8.1' | |
- '8.2' | |
db: | |
- mysql | |
- pgsql | |
- sqlite | |
dependencies: | |
- highest | |
include: | |
- php-version: '8.0' | |
dependencies: lowest | |
db: sqlite | |
- php-version: '8.0' | |
dependencies: lowest | |
db: mysql | |
- php-version: '8.0' | |
dependencies: lowest | |
db: pgsql | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: phpcr_tests | |
options: >- | |
--health-cmd "mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 | |
ports: | |
- 3306:3306 | |
postgres: | |
image: postgres:13 | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: phpcr_tests | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd "pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Install and configure PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: "pdo, pdo_sqlite, pdo_mysql, mysql, pdo_pgsql" | |
tools: 'composer:v2' | |
- name: Install dependencies with Composer | |
uses: ramsey/composer-install@v2 | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
composer-options: --prefer-dist | |
- name: Get source version of phpcr-utils | |
run: | | |
rm -rf vendor/phpcr/phpcr-utils | |
composer update phpcr/phpcr-utils --prefer-source | |
- name: Prepare test config | |
run: | | |
php tests/generate_phpunit_config.php ${{ matrix.db }} | |
- name: Execute test cases | |
run: | | |
vendor/bin/phpunit -c ${{ matrix.db }}.phpunit.xml |