Skip to content

Commit

Permalink
[RELEASE] Version 12.4.0 with conditional event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexvaar committed Feb 9, 2024
2 parents ab0073f + c08d0fd commit 2abe731
Show file tree
Hide file tree
Showing 260 changed files with 7,515 additions and 815 deletions.
35 changes: 35 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
HOST_LOCAL=local.v12.in2publish-core.de
HOST_FOREIGN=foreign.v12.in2publish-core.de
MAIL_HOST=mail.v12.in2publish-core.de

SQLPORT=12601

TYPO3_INSTALL_DB_DRIVER=mysqli
TYPO3_INSTALL_DB_USER=app
TYPO3_INSTALL_DB_PASSWORD=app
TYPO3_INSTALL_DB_HOST=mysql
TYPO3_INSTALL_DB_PORT=3306
TYPO3_INSTALL_DB_USE_EXISTING=1
TYPO3_INSTALL_DB_UNIX_SOCKET=""
TYPO3_INSTALL_ADMIN_USER=testing-admin
TYPO3_INSTALL_ADMIN_PASSWORD=Password-1
TYPO3_INSTALL_SITE_SETUP_TYPE=site
TYPO3_INSTALL_WEB_SERVER_CONFIG=apache

MYSQL_ROOT_PASSWORD=root
MYSQL_PASSWORD=app
MYSQL_USER=app

FOREIGN_DB_NAME=foreign
FOREIGN_DB_USER=app
FOREIGN_DB_PASS=app
FOREIGN_DB_HOST=mysql
FOREIGN_DB_PORT=3306

SQLDUMPSDIR=.project/data/dumps/
FILESDIR=.project/data/fileadmin

SELENIUM_NODE_CHROME_VNC_PORT=22586
SELENIUM_NODE_CHROME_NOVNC_PORT=22587
SELENIUM_NODE_FIREFOX_VNC_PORT=22588
SELENIUM_NODE_FIREFOX_NOVNC_PORT=22589
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
/Makefile export-ignore
/phive.xml export-ignore

/Tests/Browser/files/* filter=lfs diff=lfs merge=lfs -text
/Tests/Manual/images/* filter=lfs diff=lfs merge=lfs -text

# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto

# Enforce checkout with linux lf consistent over all plattforms
# Enforce checkout with linux lf consistent over all platforms
.* text eol=lf
*.html text eol=lf
*.css text eol=lf
Expand Down
108 changes: 94 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,108 @@ jobs:
testsuite:
name: all tests
runs-on: ubuntu-20.04
strategy:
matrix:
php: [ '7.4', '8.0' ]
minMax: [ 'composerInstallMin', 'composerInstallMax' ]
# strategy:
# matrix:
# php: [ '7.4', '8.0' ]
# minMax: [ 'composerInstallMin', 'composerInstallMax' ]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Composer
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s ${{ matrix.minMax }}
- name: Add local env vars
run: echo "USER_ID=$(id -u)" >> .env; echo "GROUP_ID=$(id -g)" >> .env; echo "HOST_PWD=$(pwd)" >> .env; cat .env

- name: Composer validate
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerValidate
- name: Copy docker compose file for CI
run: cp .project/docker/docker-compose.ci.yaml docker-compose.yaml

- name: Lint PHP
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint
- name: Docker Compose
run: docker compose up -d

- name: Unit tests
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit
- name: Show me what's up
run: docker compose ps

- name: Functional tests with mariadb
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mariadb -s functional
- name: Show me what's defined
run: printenv

- name: Show me what's defined inside
run: docker compose exec local-php printenv

- name: Show me what's there
run: ls -la

- name: Show me what's docker
run: ls -la /var/run/docker.sock

- name: Composer Local
run: docker exec -u$(id -u) in2publish_core-local-php-1 composer install

- name: Composer Foreign
run: docker exec -u$(id -u) in2publish_core-foreign-php-1 composer install

- name: Wait for Database
run: while ! docker compose exec -T mysql mysql -uroot -proot local -e "SELECT 1;" &> /dev/null; do echo "Waiting for database ..."; sleep 3; done;

- name: TYPO3 Setup Local
run: docker exec -u$(id -u) in2publish_core-local-php-1 vendor/bin/typo3 install:setup --force

- name: TYPO3 Setup Foreign
run: docker exec -u$(id -u) in2publish_core-foreign-php-1 vendor/bin/typo3 install:setup --force

- name: Restore site configurations after setup
run: git checkout Build/local/config/sites/main/config.yaml && git checkout Build/foreign/config/sites/main/config.yaml

- name: Restore DB Local
run: docker exec -u$(id -u) in2publish_core-local-php-1 vendor/bin/mysql-loader import -Hmysql -uroot -proot -Dlocal -f/.project/data/dumps/local/

- name: Restore DB Foreign
run: docker exec -u$(id -u) in2publish_core-local-php-1 vendor/bin/mysql-loader import -Hmysql -uroot -proot -Dforeign -f/.project/data/dumps/foreign/

- name: Show me what's up 2
run: docker compose ps

- name: Unit Tests
run: docker exec -u$(id -u) in2publish_core-local-php-1 vendor/bin/phpunit -c /app/phpunit.unit.xml --testdox
if: always()

- name: Functional Tests
run: docker exec -u$(id -u) in2publish_core-local-php-1 vendor/bin/phpunit -c /app/phpunit.functional.xml --testdox
if: always()

- name: Acceptance Tests
run: docker exec -u$(id -u) in2publish_core-local-php-1 vendor/bin/phpunit -c /app/phpunit.browser.xml --testdox
if: always()

- name: Show me what's up 3
run: docker compose ps
if: always()

- name: Show me what's logged
run: docker compose logs
if: always()

- name: Shut down to finish video recording
run: docker compose down
if: always()

- name: Upload test artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: test-artifacts
path: |
.project/artifacts
# - name: Composer validate
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerValidate

# - name: Lint PHP
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint

# - name: Unit tests
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s unit

# - name: Functional tests with mariadb
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mariadb -s functional

# - name: Functional tests with mssql
# run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -d mssql -s functional
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ Resources/Private/Clickdummy/typo3_src-6.2.9
Resources/Private/Clickdummy/zextensions.css

# Generated
.Build
.project/phars
.project/temp
.project/artifacts
Build/testing-docker/.env
Build/.phpunit.result.cache
.php-cs-fixer.cache
composer.lock
docker-compose.yaml
Loading

0 comments on commit 2abe731

Please sign in to comment.