-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test setup for content bundle integration (#693)
- Loading branch information
1 parent
7c74374
commit b478e88
Showing
52 changed files
with
979 additions
and
2,792 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,15 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/php:7.3-node-browsers | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install OS dependencies (mysql, gd) | ||
command: | | ||
sudo apt-get install -y libpng-dev | ||
sudo docker-php-ext-install pdo_mysql gd | ||
parallel: true | ||
- run: echo "Circle CI is not longer used on 3.0 can be removed when support for 2.x is removed" |
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 |
---|---|---|
|
@@ -9,106 +9,48 @@ on: | |
|
||
jobs: | ||
test: | ||
name: "PHP ${{ matrix.php-version }} (elasticsearch ${{ matrix.elasticsearch-version }}, ${{ matrix.phpcr-transport }}, ${{ matrix.dependency-versions }})" | ||
name: 'PHP ${{ matrix.php-version }} (${{ matrix.dependency-versions }}, Coverage ${{ matrix.coverage }})' | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
DATABASE_URL: mysql://root:[email protected]:3306/sulu_test?serverVersion=5.7 | ||
PHPCR_TRANSPORT: ${{ matrix.phpcr-transport }} | ||
APP_ENV: test | ||
DATABASE_URL: mysql://root:[email protected]:3306/su_content_test?serverVersion=8.0.29&charset=utf8mb4&collation=utf8mb4_unicode_ci | ||
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- php-version: '8.0' | ||
elasticsearch-version: '7.11.1' | ||
elasticsearch-package-constraint: '~7.11.0' | ||
phpcr-transport: jackrabbit | ||
- php-version: '8.2' | ||
dependency-versions: 'lowest' | ||
php-extensions: 'ctype, iconv, mysql, imagick' | ||
tools: 'composer:v2' | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
ELASTICSEARCH_HOST: '127.0.0.1:9200' | ||
|
||
- php-version: '8.1' | ||
elasticsearch-version: '7.11.1' | ||
elasticsearch-package-constraint: '~7.11.0' | ||
phpcr-transport: doctrinedbal | ||
dependency-versions: 'highest' | ||
php-extensions: 'ctype, iconv, mysql, imagick' | ||
tools: 'composer:v2' | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
ELASTICSEARCH_HOST: '127.0.0.1:9200' | ||
|
||
- php-version: '8.2' | ||
elasticsearch-version: '7.11.1' | ||
elasticsearch-package-constraint: '~7.11.0' | ||
phpcr-transport: jackrabbit | ||
dependency-versions: 'highest' | ||
php-extensions: 'ctype, iconv, mysql, imagick' | ||
tools: 'composer:v2' | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
ELASTICSEARCH_HOST: '127.0.0.1:9200' | ||
|
||
- php-version: '8.3' | ||
elasticsearch-version: '7.17.2' | ||
elasticsearch-package-constraint: '~7.17.0' | ||
phpcr-transport: doctrinedbal | ||
dependency-versions: 'highest' | ||
php-extensions: 'ctype, iconv, mysql, imagick' | ||
tools: 'composer:v2' | ||
phpstan: false | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
ELASTICSEARCH_HOST: '127.0.0.1:9200' | ||
|
||
- php-version: '8.4' | ||
composer-options: '--ignore-platform-reqs' | ||
elasticsearch-version: '8.14.3' | ||
elasticsearch-package-constraint: '~7.17.0' | ||
phpcr-transport: doctrinedbal | ||
dependency-versions: 'highest' | ||
php-extensions: 'ctype, iconv, mysql, imagick' | ||
tools: 'composer:v2' | ||
phpstan: false | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
ELASTICSEARCH_HOST: '127.0.0.1:9200' | ||
|
||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
image: mysql:8.0 | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 | ||
|
||
jackrabbit: | ||
image: sulu/jackrabbit:2.20-tomcat-filesystem | ||
env: | ||
DATABASE_HOST: mysql | ||
DATABASE_PORT: 3306 | ||
DATABASE_NAME: sulu_test_jackrabbit | ||
DATABASE_USER: root | ||
DATABASE_PASS: root | ||
LOG_LEVEL: WARN | ||
ports: | ||
- 8080:8080 | ||
|
||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:${{ matrix.elasticsearch-version }} | ||
ports: | ||
- 9200:9200 | ||
env: | ||
discovery.type: 'single-node' | ||
xpack.security.enabled: 'false' | ||
options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=5 | ||
|
||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v4 | ||
|
@@ -126,9 +68,6 @@ jobs: | |
# testing lowest versions. | ||
run: composer remove "*php-cs-fixer*" "*phpstan*" "*rector*" --dev --no-update | ||
|
||
- name: Require elasticsearch dependency | ||
run: composer require --dev elasticsearch/elasticsearch:"${{ matrix.elasticsearch-package-constraint }}" --no-interaction --no-update | ||
|
||
- name: Install composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
|
@@ -137,11 +76,9 @@ jobs: | |
|
||
- name: Bootstrap test environment | ||
run: composer bootstrap-test-environment | ||
env: ${{ matrix.env }} | ||
|
||
- name: Execute test cases | ||
run: time composer test | ||
env: ${{ matrix.env }} | ||
|
||
lint: | ||
name: "PHP Lint" | ||
|
@@ -162,9 +99,6 @@ jobs: | |
tools: 'composer:v2' | ||
coverage: none | ||
|
||
- name: Require elasticsearch dependency | ||
run: composer require --dev elasticsearch/elasticsearch:"~7.11.0" --no-interaction --no-update | ||
|
||
- name: Install composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
|
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.