Sitelet https://github.com/mautic/api-library/commit/30279f74427ff7b26a7a3888edfdd73d1e8c572c
Skip to content

Commit 30279f7

Browse files
committed
change ownership in last step to prevent access issues during install and config
1 parent d7e6980 commit 30279f7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ jobs:
104104
--force --mailer_from_name="GitHub Actions" --mailer_from_email="github-actions@mautic.org" \
105105
--mailer_transport="smtp" --mailer_host="localhost" --mailer_port="1025" --env=dev
106106
php bin/console cache:warmup --no-interaction --env=dev
107-
sudo chown -R www-data:www-data /var/www/html
108-
109107
working-directory: /var/www/html/
110108

111109
# Enable Twilio plugin with random credentials (needed for MessagesTest to function, doesn't actually contact Twilio API).
@@ -114,6 +112,9 @@ jobs:
114112
mysql -uroot -P${{ job.services.mysql.ports[3306] }} -h127.0.0.1 -e "USE mautictest; INSERT INTO plugin_integration_settings (plugin_id, name, is_published, supported_features, api_keys, feature_settings) VALUES (NULL, 'Twilio', 1, 'a:0:{}', 'a:2:{s:8:\"username\";s:169:\"bzFmNlIydWRSZXlIN2lQVkdpanJ4aTQ2NUh6RVdDbHlLRVhsWGZ4b0kyZVNxLzYrQ1J6V1RvMnlhVEp0c245TEp6eStQekx5ZVhLWjB1YVdoR3RnR2dHQ3k1emVVdGt5NzZKUmtjUnJ3c1E9|L8tbZRIYhwatT7Mq+HAdYA==\";s:8:\"password\";s:169:\"T2d2cFpXQWE5YVZnNFFianJSYURRYUtGRHBNZGZjM1VETXg2Wm5Va3NheW43MjVWUlJhTVlCL2pYMDBpbElONStiVVBNbEM3M3BaeGJMNkFKNUFEN1pTNldSRjc4bUM4SDh1SE9OY1k5MTg9|TeuSvfx4XSUOvp0O7T49Cg==\";}', 'a:4:{s:20:\"sending_phone_number\";N;s:22:\"disable_trackable_urls\";i:0;s:16:\"frequency_number\";N;s:14:\"frequency_time\";N;}');"
115113
php bin/console mautic:plugins:reload --env=dev
116114
working-directory: /var/www/html
115+
116+
- name: Set correct ownership so Apache can access the files
117+
run: sudo chown -R www-data:www-data /var/www/html
117118

118119
- name: Run tests
119120
run: vendor/bin/paratest -p 3 --coverage-clover coverage.xml

0 commit comments

Comments
 (0)