File tree 3 files changed +28
-2
lines changed
3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Parameter overrides for GitHub Actions.
4
+ */
5
+ $ parameters = [
6
+ 'api_enabled ' => true ,
7
+ 'api_enable_basic_auth ' => true ,
8
+ 'db_driver ' => 'pdo_mysql ' ,
9
+ 'db_host ' => '127.0.0.1 ' ,
10
+ 'db_table_prefix ' => null ,
11
+ 'db_port ' => getenv ('DB_PORT ' ),
12
+ 'db_name ' => 'mautictest ' ,
13
+ 'db_user ' => 'root ' ,
14
+ 'db_password ' => '' ,
15
+ 'admin_email ' =>
'[email protected] ' ,
16
+ 'admin_password ' => 'mautic ' ,
17
+ 'mailer_transport ' => 'smtp ' ,
18
+ 'mailer_host ' => 'localhost ' ,
19
+ 'mailer_port ' => '1025 ' ,
20
+ ];
File renamed without changes.
Original file line number Diff line number Diff line change @@ -104,8 +104,14 @@ jobs:
104
104
DB_PORT : ${{ job.services.mysql.ports[3306] }}
105
105
run : |
106
106
composer install --prefer-dist --no-progress
107
- cp $GITHUB_WORKSPACE/.github/ci-files/local.php ./app/config/local.php
108
- php bin/console mautic:install http://localhost/ --force --env=test
107
+ if [[ "$(jq -r '.version | .[0:1]' app/release_metadata.json)" == "4" ]]; then
108
+ cp $GITHUB_WORKSPACE/.github/ci-files/local_4.php ./app/config/local.php
109
+ php bin/console mautic:install http://localhost/ --force --env=test--mailer_from_name="GitHub Actions" --mailer_from_email="[email protected] "
110
+ else
111
+ cp $GITHUB_WORKSPACE/.github/ci-files/local_5.php ./app/config/local.php
112
+ php bin/console mautic:install http://localhost/ --force --env=test
113
+ fi
114
+
109
115
php bin/console cache:warmup --no-interaction --env=test
110
116
working-directory : /var/www/html/
111
117
You can’t perform that action at this time.
0 commit comments