Merge branch '2025.11' #2455
This file contains hidden or 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
| name: tine20 php unit test CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: pwsh | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| matrix: | |
| operating-system: [ubuntu-24.04] | |
| php-versions: ['8.2', '8.3'] | |
| name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| - name: Run mysql | |
| run: | | |
| sudo systemctl start mysql.service | |
| mysql -uroot -proot --host 127.0.0.1 -e 'CREATE DATABASE IF NOT EXISTS tine20;' | |
| mysql -uroot -proot --host 127.0.0.1 -e "ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 'root';" | |
| - name: Install tine20 | |
| run: | | |
| cd tine20 | |
| composer install --ignore-platform-reqs | |
| cp config.inc.github.php config.inc.php | |
| php -d include_path=.:${configdir} setup.php --install -- adminLoginName=github adminPassword=github adminEmailAddress=github@example.org acceptedTermsVersion=1000 | |
| - name: Unit tests | |
| run: | | |
| cd tests/tine20 | |
| ../../tine20/vendor/bin/phpunit --color GithubTests.php |