Skip to content

Merge remote-tracking branch 'customers/main' #1823

Merge remote-tracking branch 'customers/main'

Merge remote-tracking branch 'customers/main' #1823

Workflow file for this run

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 [email protected] acceptedTermsVersion=1000
- name: Unit tests
run: |
cd tests/tine20
../../tine20/vendor/bin/phpunit --color GithubTests.php