-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'ibexa/main' into merge-bump-php-req
- Loading branch information
Showing
37 changed files
with
337 additions
and
222 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
| Question | Answer | ||
| ---------------------------------------- | ------------------ | ||
| **JIRA issue** | [IBX-XXXX](https://issues.ibexa.co/browse/IBX-XXXX) | ||
| **Type** | feature/bug/improvement | ||
| **Target Ibexa version** | `v4.x` - please update `x` accordingly | ||
| **BC breaks** | yes/no | ||
|
||
<!-- Replace this comment with Pull Request description --> | ||
|
||
#### Checklist: | ||
- [ ] Provided PR description. | ||
- [ ] Tested the solution manually. | ||
- [ ] Provided automated test coverage. | ||
- [ ] Checked that target branch is set correctly (master for features, the oldest supported for bugs). | ||
- [ ] Ran PHP CS Fixer for new PHP code (use `$ composer fix-cs`). | ||
- [ ] Asked for a review (ping `@ibexa/engineering`). |
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- '[0-9]+.[0-9]+' | ||
pull_request: ~ | ||
|
||
jobs: | ||
tests: | ||
name: Tests on SQLite | ||
runs-on: "ubuntu-20.04" | ||
timeout-minutes: 10 | ||
continue-on-error: ${{ matrix.experimental }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: | ||
- '7.4' | ||
composer_options: [ "" ] | ||
experimental: [false] | ||
include: | ||
- php: '8.0' | ||
composer_options: "--ignore-platform-req php" | ||
experimental: true | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP Action | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
extensions: pdo_sqlite, gd | ||
tools: cs2pr | ||
|
||
- uses: "ramsey/composer-install@v1" | ||
with: | ||
dependency-versions: "highest" | ||
composer-options: "${{ matrix.composer_options }}" | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Run code style check | ||
run: composer run-script check-cs -- --format=checkstyle | cs2pr | ||
|
||
- name: Run test suite on SQLite | ||
run: composer run-script --timeout=600 test | ||
|
||
mysql-tests: | ||
name: Tests on MySQL | ||
services: | ||
mysql: | ||
image: mysql:8.0 | ||
ports: | ||
- 3306/tcp | ||
env: | ||
MYSQL_RANDOM_ROOT_PASSWORD: true | ||
MYSQL_USER: mysql | ||
MYSQL_PASSWORD: mysql | ||
MYSQL_DATABASE: testdb | ||
options: >- | ||
--health-cmd="mysqladmin ping" | ||
--health-interval=10s | ||
--health-timeout=5s | ||
--health-retries=5 | ||
runs-on: "ubuntu-20.04" | ||
timeout-minutes: 60 | ||
continue-on-error: ${{ matrix.experimental }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
experimental: [ false ] | ||
php: | ||
- '7.4' | ||
composer_options: [ "" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP Action | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none | ||
extensions: pdo_mysql, gd | ||
tools: cs2pr | ||
|
||
- uses: "ramsey/composer-install@v1" | ||
with: | ||
dependency-versions: "highest" | ||
composer-options: "${{ matrix.composer_options }}" | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Run integration test suite vs MySQL | ||
run: composer run-script test | ||
env: | ||
MYSQL_DATABASE_URL: "mysql://mysql:[email protected]:${{ job.services.mysql.ports[3306] }}/testdb" |
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,3 +1,4 @@ | ||
/vendor | ||
/.php_cs.cache | ||
/.php-cs-fixer.cache | ||
/composer.lock | ||
/.phpunit.result.cache |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) Ibexa AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
use Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory; | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->in([__DIR__ . '/src', __DIR__ . '/tests']) | ||
->files()->name('*.php'); | ||
|
||
return InternalConfigFactory::build() | ||
->setFinder($finder) | ||
; |
This file was deleted.
Oops, something went wrong.
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
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,45 +1,45 @@ | ||
{ | ||
"name": "ezsystems/doctrine-dbal-schema", | ||
"name": "ibexa/doctrine-schema", | ||
"description": "Abstraction layer, on top of Doctrine, for cross-DBMS schema import", | ||
"type": "ezplatform-bundle", | ||
"type": "ibexa-bundle", | ||
"license": "GPL-2.0-only", | ||
"replace": { | ||
"ezsystems/doctrine-dbal-schema": "*" | ||
}, | ||
"require": { | ||
"php": "^7.3 || ^8.0", | ||
"doctrine/dbal": "^2.10", | ||
"symfony/config": "^5.0", | ||
"symfony/dependency-injection": "^5.0", | ||
"symfony/http-kernel": "^5.0", | ||
"symfony/yaml": "^5.0" | ||
"php": "^7.4 || ^8.0", | ||
"doctrine/dbal": "^2.13", | ||
"symfony/config": "^5.3", | ||
"symfony/dependency-injection": "^5.3", | ||
"symfony/http-kernel": "^5.3", | ||
"symfony/yaml": "^5.3" | ||
}, | ||
"require-dev": { | ||
"ezsystems/ezplatform-code-style": "^0.4.0", | ||
"friendsofphp/php-cs-fixer": "^2.16", | ||
"ibexa/code-style": "^1.0", | ||
"phpunit/phpunit": "^8.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Ibexa\\DoctrineSchema\\": "src/lib/", | ||
"Ibexa\\Bundle\\DoctrineSchema\\": "src/bundle/", | ||
"Ibexa\\Contracts\\DoctrineSchema\\": "src/contracts/", | ||
"EzSystems\\DoctrineSchemaBundle\\": "src/bundle", | ||
"EzSystems\\DoctrineSchema\\": "src/lib" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"EzSystems\\Tests\\DoctrineSchema\\": "tests/lib" | ||
"Ibexa\\Tests\\DoctrineSchema\\": "tests/lib/" | ||
} | ||
}, | ||
"scripts": { | ||
"fix-cs": "@php ./vendor/bin/php-cs-fixer fix -v --show-progress=estimating", | ||
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots", | ||
"check-cs": "@fix-cs --diff --dry-run", | ||
"test": "@php ./vendor/bin/phpunit -vc phpunit.xml" | ||
}, | ||
"extra": { | ||
"_ezplatform_branch_for_behat_tests": "3.0", | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev", | ||
"dev-tmp_ci_branch": "1.0.x-dev" | ||
}, | ||
"thanks": { | ||
"name": "ezsystems/ezplatform", | ||
"url": "https://github.com/ezsystems/ezplatform" | ||
"dev-main": "4.0.x-dev" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.