Skip to content

[CI] Setup CI for v11.x branch to be enable to do 11.x releases #508

[CI] Setup CI for v11.x branch to be enable to do 11.x releases

[CI] Setup CI for v11.x branch to be enable to do 11.x releases #508

Workflow file for this run

name: DBMS Compat Checks
on:
pull_request:
branches:
- "**"
push:
branches:
- "v11.x"
jobs:
PostgreSQL:
name: PostgreSQL
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
postgres: [ '9.6', '10', '11', '12', '13' ]
typo3: [ '^11.5' ]
php: [ '8.0' ]
steps:
- name: Set up PostgreSQL ${{ matrix.postgres }}
run: |
docker run -e POSTGRES_DB=typo3 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=root -d -p 5432:5432 postgres:${{ matrix.postgres }}
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP Version ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Install dependencies with nimut/typo3-complete:${{ matrix.typo3 }}
run: |
composer require --dev nimut/typo3-complete:${{ matrix.typo3 }} --no-progress
git checkout composer.json
ln -nfs .Build/vendor/typo3/cms/typo3 typo3
- name: Ensure Libs are installed too for non-composer
run: composer extension-create-libs
- name: Wait for PostgreSQL
run: |
while ! nc -z localhost 5432; do
sleep 1;
done;
echo Database is up;
- name: Functional Tests
run: |
export "FUNCTIONAL_XML"=.Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml
rm -rf .Build/Web/typo3temp/ var/
.Build/bin/phpunit --whitelist Classes --colors -c $FUNCTIONAL_XML Tests/Functional --process-isolation
env:
typo3DatabaseDriver: pdo_pgsql
typo3DatabaseHost: 127.0.0.1
typo3DatabaseName: typo3
typo3DatabasePassword: root
typo3DatabaseUsername: root
SQLite:
name: SQLite
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php: [ '8.0' ]
typo3: [ '11.5' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP Version ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Install dependencies with nimut/typo3-complete:${{ matrix.typo3 }}
run: |
composer require --dev nimut/typo3-complete:${{ matrix.typo3 }} --no-progress
- name: Ensure Libs are installed too for non-composer
run: composer extension-create-libs
- name: Functional Tests
run: composer test:functional-sqlite
# run: |
# export "FUNCTIONAL_XML"=.Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml
# .Build/bin/phpunit --whitelist Classes --colors -c $FUNCTIONAL_XML Tests/Functional
# env:
# typo3DatabaseDriver: pdo_sqlite
MariaDB:
name: MariaDB
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
mariadb: [ '10.2', '10.3', '10.4', '10.5' ]
typo3: [ '^11.5' ]
php: [ '8.0' ]
steps:
- name: Set up MariaDB ${{ matrix.mariadb }}
uses: getong/[email protected]
with:
mariadb version: ${{ matrix.mariadb }}
mysql root password: 'root'
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP Version ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Install dependencies with nimut/typo3-complete:${{ matrix.typo3 }}
run: |
composer require --dev nimut/typo3-complete:${{ matrix.typo3 }} --no-progress
git checkout composer.json
ln -nfs .Build/vendor/typo3/cms/typo3 typo3
- name: Ensure Libs are installed too for non-composer
run: composer extension-create-libs
- name: Functional Tests
run: |
export "FUNCTIONAL_XML"=.Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml
rm -rf .Build/Web/typo3temp/ var/
.Build/bin/phpunit --whitelist Classes --colors -c $FUNCTIONAL_XML Tests/Functional --process-isolation
env:
typo3DatabaseHost: 127.0.0.1
typo3DatabaseName: typo3
typo3DatabasePassword: root
typo3DatabaseUsername: root
MySQL:
name: MySQL
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
mysql: [ '5.6', '5.7', '8.0' ]
typo3: [ '^11.5' ]
php: [ '8.0' ]
steps:
- name: Set up MySQL ${{ matrix.mysql }}
uses: mirromutth/[email protected]
with:
mysql version: ${{ matrix.mysql }}
mysql root password: 'root'
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP Version ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Install dependencies with nimut/typo3-complete:${{ matrix.typo3 }}
run: |
composer require --dev nimut/typo3-complete:${{ matrix.typo3 }} --no-progress
git checkout composer.json
ln -nfs .Build/vendor/typo3/cms/typo3 typo3
- name: Ensure Libs are installed too for non-composer
run: composer extension-create-libs
- name: Functional Tests
run: |
export "FUNCTIONAL_XML"=.Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml
rm -rf .Build/Web/typo3temp/ var/
.Build/bin/phpunit --whitelist Classes --colors -c $FUNCTIONAL_XML Tests/Functional --process-isolation
env:
typo3DatabaseHost: 127.0.0.1
typo3DatabaseName: typo3
typo3DatabasePassword: root
typo3DatabaseUsername: root