Merge remote-tracking branch 'origin/2023.11' into 2024.11 #96
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
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-22.04] | |
php-versions: ['8.0', '8.1'] | |
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 | |
cp install.properties.github install.properties | |
vendor/bin/phing tine-install | |
- name: Unit tests | |
run: | | |
cd tests/tine20 | |
../../tine20/vendor/bin/phpunit --color GithubTests.php |