Skip to content

Commit

Permalink
Merge pull request #11 from tine-groupware/pu/ps/ci
Browse files Browse the repository at this point in the history
make github ci work again
  • Loading branch information
pschuele authored Jan 17, 2024
2 parents caac13c + 377f7ee commit 19bb4b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/php-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-20.04]
php-versions: ['7.4', '8.0']
operating-system: [ubuntu-22.04]
php-versions: ['8.0', '8.1']

name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
Expand All @@ -39,7 +39,6 @@ jobs:
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: |
Expand Down
1 change: 0 additions & 1 deletion tests/tine20/GithubTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public static function suite()
Tinebase_Config::getInstance()->set(Tinebase_Config::USE_NOMINATIM_SERVICE, false);

// addressbook
$suite->addTestSuite(Addressbook_Frontend_JsonTest::class);
$suite->addTest(Addressbook_Frontend_AllTests::suite());
$suite->addTest(Addressbook_Convert_Contact_VCard_AllTests::suite());

Expand Down
4 changes: 3 additions & 1 deletion tine20/Addressbook/Controller/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,9 @@ public function getContactsRecipientToken(array $contacts): array
$mailTypes = ['email', 'email_home'];
$possibleAddresses = [];

if (class_exists('GDPR_Controller_DataIntendedPurposeRecord')) {
if (class_exists('GDPR_Controller_DataIntendedPurposeRecord')
&& Tinebase_Application::getInstance()->isInstalled('GDPR')
) {
$expander = new Tinebase_Record_Expander(Addressbook_Model_Contact::class, [
Tinebase_Record_Expander::EXPANDER_PROPERTIES => [
GDPR_Controller_DataIntendedPurposeRecord::ADB_CONTACT_CUSTOM_FIELD_NAME => [
Expand Down

0 comments on commit 19bb4b2

Please sign in to comment.