-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8671fb
commit b80fb23
Showing
1 changed file
with
32 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
# DO NOT EDIT THIS FILE! | ||
# | ||
# It's auto-generated by sonata-project/dev-kit package. | ||
|
||
name: Test on platforms | ||
|
||
on: | ||
schedule: | ||
- cron: '30 0 * * *' | ||
push: | ||
branches: | ||
- 3.x | ||
- 4.x | ||
- 5.x | ||
pull_request: | ||
|
||
jobs: | ||
test-mysql: | ||
name: PHP ${{ matrix.php-version }} + MySQL ${{ matrix.mysql-version }} + highest | ||
name: PHP ${{ matrix.php-version }} + MySQL ${{ matrix.mysql-version }} + ${{ matrix.dependencies }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
continue-on-error: false | ||
continue-on-error: ${{ matrix.allowed-to-fail }} | ||
|
||
env: | ||
DATABASE_URL: mysql://[email protected]:3306/sonata_tests | ||
|
@@ -32,44 +37,46 @@ jobs: | |
strategy: | ||
matrix: | ||
php-version: | ||
- "8.2" | ||
- '8.2' | ||
mysql-version: | ||
- "5.7" | ||
- "8.0" | ||
- '5.7' | ||
- '8.0' | ||
dependencies: [highest] | ||
allowed-to-fail: [false] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install PHP with extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
coverage: pcov | ||
coverage: none | ||
tools: composer:v2 | ||
extensions: mysqli, pdo_mysql | ||
|
||
- name: Add PHPUnit matcher | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Install Composer dependencies (highest) | ||
uses: ramsey/composer-install@v1 | ||
- name: Install Composer dependencies (${{ matrix.dependencies }}) | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: highest | ||
dependency-versions: ${{ matrix.dependencies }} | ||
composer-options: --prefer-dist --prefer-stable | ||
|
||
- name: Run Tests | ||
run: make test | ||
|
||
test-postgres: | ||
name: PHP ${{ matrix.php-version }} + PostgreSQL ${{ matrix.postgres-version }} + highest | ||
name: PHP ${{ matrix.php-version }} + PostgreSQL ${{ matrix.postgres-version }} + ${{ matrix.dependencies }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
continue-on-error: false | ||
continue-on-error: ${{ matrix.allowed-to-fail }} | ||
|
||
env: | ||
DATABASE_URL: postgresql://postgres:[email protected]:5432/postgres?serverVersion=13&charset=utf8 | ||
DATABASE_URL: postgresql://postgres:[email protected]:5432/postgres?serverVersion=${{ matrix.postgres-version }}&charset=utf8 | ||
|
||
services: | ||
postgres: | ||
|
@@ -84,30 +91,32 @@ jobs: | |
strategy: | ||
matrix: | ||
php-version: | ||
- "8.2" | ||
- '8.2' | ||
postgres-version: | ||
- "13" | ||
- "14" | ||
- "15" | ||
- '13' | ||
- '14' | ||
- '15' | ||
dependencies: [highest] | ||
allowed-to-fail: [false] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install PHP with extensions | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
coverage: pcov | ||
coverage: none | ||
tools: composer:v2 | ||
|
||
- name: Add PHPUnit matcher | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Install Composer dependencies (highest) | ||
uses: ramsey/composer-install@v1 | ||
- name: Install Composer dependencies (${{ matrix.dependencies }}) | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
dependency-versions: highest | ||
dependency-versions: ${{ matrix.dependencies }} | ||
composer-options: --prefer-dist --prefer-stable | ||
|
||
- name: Run Tests | ||
|