Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
073df56
Make the setLogger method on the API class adhere to the LoggerAwareI…
Rocksheep Oct 14, 2022
4904d6f
Change assertion in test to always fail when validation fails
Rocksheep Oct 14, 2022
931e15e
Change assertion to fail method
Rocksheep Oct 17, 2022
0de5ac0
Fix assertions
Rocksheep Oct 17, 2022
bea5b68
Update project to support to php8
Rocksheep Oct 20, 2022
a28aa42
Update upgrade readme with changes from this PR
Rocksheep Oct 20, 2022
3912e79
Update testing ddev file to use PHP 8.0
Rocksheep Oct 20, 2022
4b5f9c1
Update github workflows with PHP 8
Rocksheep Oct 20, 2022
53855db
Update Readme to have PHP 8.0 as the minimum requirement
Rocksheep Oct 20, 2022
3b87cc8
Fix - Deprecated PHP 8.1
LadySolveig Apr 10, 2023
1078e2c
Simplified Version
LadySolveig Apr 11, 2023
525c734
docs: update README.md [skip ci]
allcontributors[bot] Apr 11, 2023
b6ddeb7
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Apr 11, 2023
47a4fac
Merge pull request #294 from mautic/all-contributors/add-LadySolveig
RCheesley Apr 11, 2023
8deabb2
docs: update README.md [skip ci]
allcontributors[bot] Apr 11, 2023
28c38c2
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Apr 11, 2023
846a4f1
Merge pull request #295 from mautic/all-contributors/add-escopecz
RCheesley Apr 11, 2023
3b96c2d
Merge pull request #293 from LadySolveig/LadySolveig-patch-fix-deprec…
escopecz Apr 12, 2023
73a92dd
Make the setLogger method on the API class adhere to the LoggerAwareI…
Rocksheep Oct 14, 2022
223b1bf
Change assertion in test to always fail when validation fails
Rocksheep Oct 14, 2022
10f4a36
Change assertion to fail method
Rocksheep Oct 17, 2022
9db9a69
Fix assertions
Rocksheep Oct 17, 2022
56f8799
Update project to support to php8
Rocksheep Oct 20, 2022
0d3400e
Update upgrade readme with changes from this PR
Rocksheep Oct 20, 2022
390f339
Update github workflows with PHP 8
Rocksheep Oct 20, 2022
921f057
Update Readme to have PHP 8.0 as the minimum requirement
Rocksheep Oct 20, 2022
403c39b
Update composer.lock
Rocksheep Apr 12, 2023
50a2f5d
Merge remote-tracking branch 'origin/main'
Rocksheep Apr 12, 2023
a4e8788
Update composer.lock
Rocksheep Apr 12, 2023
af80f6a
Update composer.lock for use with php8.0
Rocksheep Apr 12, 2023
8e280e2
docs: update README.md [skip ci]
allcontributors[bot] Apr 12, 2023
3a022ea
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Apr 12, 2023
c788edd
Merge pull request #296 from mautic/all-contributors/add-Rocksheep
RCheesley Apr 12, 2023
cce4efb
docs: update README.md [skip ci]
allcontributors[bot] Apr 12, 2023
03d0723
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Apr 12, 2023
a39ad13
Merge pull request #297 from mautic/all-contributors/add-PierreAmmeloot
RCheesley Apr 12, 2023
a94e8f9
Update php-cs-fixer config
Rocksheep Apr 12, 2023
9594325
Update action to use new php-cs-fixer configuration
Rocksheep Apr 13, 2023
0995283
Fix style issues
Rocksheep Apr 13, 2023
6bd0d47
Merge pull request #286 from Rocksheep/main
escopecz Apr 13, 2023
40213ff
build: add .php-cs-fixer.cache to .gitignore
JaZo Apr 14, 2023
1b82b46
Merge pull request #298 from JaZo/feature/php-cs-fixer-cache-file
escopecz Apr 14, 2023
7c049d7
make the test flow compatible with removed email step
mollux Apr 18, 2023
8c9cade
Merge pull request #300 from mollux/fix-tests
escopecz Apr 18, 2023
83a65f7
build: remove composer.lock
JaZo Apr 14, 2023
c6c108a
bump memory limit to ensure Mautic in dev mode can handle it
mollux Apr 19, 2023
a2f24e8
Merge pull request #301 from mollux/memory-limit
escopecz Apr 19, 2023
5407d71
Merge pull request #299 from JaZo/feature/remove-composer-lock
escopecz Apr 19, 2023
7b8446b
Fix getMauticVersion() accessing always lower-case headers as array-k…
Moongazer May 6, 2023
a1cd1fe
Merge pull request #302 from Moongazer/fix/issue-233
escopecz May 9, 2023
55a6dbb
replace with index.php
mabumusa1 May 10, 2023
c8a430f
fix workflow
mabumusa1 May 10, 2023
28190cb
Merge pull request #303 from mautic/fix_index_dev
escopecz May 10, 2023
08556a8
remove citrix
mabumusa1 May 30, 2023
8d9da8b
Merge pull request #304 from mautic/fix_test_after_citrix_removal
mollux Jun 16, 2023
ec92ebe
switch to dsn mailer config to ensure mail tests succeed
mollux Jul 5, 2023
fc9656f
Merge pull request #306 from mautic/fix-mailing-tests
mabumusa1 Jul 6, 2023
66a9311
Replace cURL with a PSR-18 HTTP Client
JaZo Oct 21, 2022
caa08a7
Provide HTTP Client in AbstractAuthTest
JaZo Jul 11, 2023
50d0de8
Merge pull request #288 from JaZo/feature/http-client
mollux Jul 11, 2023
24f4fca
switch to the correct folder for uploads
mollux Jul 27, 2023
c6c23d5
Merge pull request #308 from mautic/media-changes
escopecz Jul 28, 2023
2738b68
use mautic in test mode to speed it up
mollux Jul 27, 2023
84bd02f
Merge pull request #309 from mautic/test_speed_test_env
escopecz Jul 31, 2023
e0bd5ad
ensure delete doesn't fail for non-existent files
mollux Aug 1, 2023
e90d511
Merge pull request #310 from mautic/speedup-compatibility-4.4
mollux Aug 1, 2023
b92bda2
ensure 5.x and 4.4 can use the same logic
mollux Aug 1, 2023
b04de81
seperate config file and install procedure
mollux Aug 1, 2023
cad7ed4
lower parallel tests
mollux Aug 1, 2023
bb0e107
add support for testing Mautic 4
mollux Aug 20, 2023
9a45170
use phpunit instead of paratest as the speedup doesn't require this a…
mollux Aug 21, 2023
b3258bc
Merge pull request #311 from mautic/speedup-compatibility-4.4-part2
mollux Aug 22, 2023
8a319b3
Fix config file location after config split-up in Mautic
mollux Oct 13, 2023
6b11eb2
Merge pull request #313 from mautic/fix-config-path
mollux Oct 13, 2023
2ae4d4d
fix for apache not being installable during tests
mollux Oct 14, 2023
1e06399
remove apache PPA as it's not working
mollux Oct 14, 2023
fa141f9
Merge pull request #314 from mautic/fix-apache-install
mollux Oct 14, 2023
587568f
add the correct command for the test script
mollux Feb 18, 2024
81fd0f4
Merge pull request #321 from mautic/fix-incorrect-composer-command
escopecz Feb 19, 2024
572ec07
feat: [DPMMA-2550] point groups api
patrykgruszka Mar 5, 2024
dfce640
feat: [DPMMA-2550] contact point groups score api
patrykgruszka Mar 5, 2024
5460af8
fix: [DPMMA-2550] csfixer for contact point group score
patrykgruszka Mar 5, 2024
08f7382
An empty DEC filter shouldn't have any value. It will be null-ed in t…
escopecz Apr 26, 2024
cd019e9
Merge pull request #324 from escopecz/dec-empty-filters
escopecz Apr 29, 2024
574d1cb
fix: [DPMMA-2550] extra test and type definitions
patrykgruszka Apr 29, 2024
d26c02d
fix: [DPMMA-2550] csfixer and fixed test
patrykgruszka Apr 29, 2024
9b0639e
fix: [DPMMA-2550] fixed test
patrykgruszka Apr 29, 2024
8e68ea9
Merge pull request #322 from patrykgruszka/DPMMA-2550_point-groups-api
escopecz Jul 9, 2024
cf5c205
setup phpstan and add to tests workflow
matbcvo Jul 18, 2024
1c0c2ca
fix errors based on phpstan analysis
matbcvo Jul 18, 2024
c00a6ea
docs: update README.md [skip ci]
allcontributors[bot] Jul 18, 2024
ce08a7a
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jul 18, 2024
2bb7883
Merge pull request #326 from mautic/all-contributors/add-matbcvo
RCheesley Jul 18, 2024
d945dee
use mediaFolder variable for setFolder
matbcvo Jul 18, 2024
c1ae7f7
Merge pull request #325 from matbcvo/phpstan
escopecz Jul 18, 2024
a448f0c
use LoggerAwareTrait from Psr/Log
matbcvo Jul 18, 2024
622e15f
Merge pull request #327 from matbcvo/psr-logger
escopecz Jul 19, 2024
c219a40
Run tests on PHP 8.1 as Mautci 5.2 dropps support for 8.0
escopecz Aug 30, 2024
2a8c988
Merge pull request #328 from escopecz/test-in-php8.1
escopecz Aug 30, 2024
9506c09
Tests are failing with `This request has been automatically failed be…
escopecz Sep 18, 2024
57165fc
Create funding-manifest-urls
RCheesley Oct 26, 2024
92628c4
If authentications fails - mark it as such.
biozshock Oct 30, 2024
7effc2f
Merge pull request #331 from biozshock/authentication-deprecations
escopecz Oct 31, 2024
ca46933
Merge pull request #330 from mautic/add-well-known-funding-manifest
escopecz Oct 31, 2024
cff8d0c
Authentication requires stronger password.
biozshock Dec 6, 2024
c8b803c
Merge pull request #333 from biozshock/authenticationFix
escopecz Dec 9, 2024
6ef9746
update tests.yml
matbcvo Feb 18, 2025
75b0b1e
Merge pull request #335 from matbcvo/update-workflow-file
escopecz Feb 25, 2025
0e38f5a
Bumping PHP from 8.1 to 8.3 in the CI
escopecz Mar 27, 2025
acbfa0a
Updating PHP CS Fixer as it doesn't work on PHP 8.2+
escopecz Mar 27, 2025
e73ec1f
Running `vendor/bin/php-cs-fixer fix` after the CS fixer update
escopecz Mar 27, 2025
e968a0d
Merge pull request #337 from escopecz/mautic7-needs-php-8.2-plus
escopecz Mar 27, 2025
d2d23fc
Bump MySQL version to 8.4
matbcvo Apr 7, 2025
6890130
Merge pull request #338 from matbcvo/fix-database
escopecz Apr 7, 2025
f680449
fix conflicting GPG key and PPA installation errors in the Install Ap…
matbcvo Apr 15, 2025
d0f6603
Merge pull request #339 from matbcvo/fix-ci-apache
escopecz Apr 15, 2025
47d8f41
Create SECURITY.md
RCheesley Jun 19, 2025
30ab108
Merge pull request #341 from RCheesley/add-security-file
RCheesley Jun 25, 2025
26b84c1
Install Apache without PPA on ubuntu-24.04
matbcvo Sep 27, 2025
9093806
Merge pull request #342 from matbcvo/workflow
escopecz Sep 29, 2025
e8b85a5
Add Webmecanik custom features on top of Mautic 5
Hugo-Prossaird Dec 8, 2025
90b039d
Update UPGRADE-4.0.md with Webmecanik migration notes
Hugo-Prossaird Dec 8, 2025
7438bda
Add CLAUDE.md to gitignore
Hugo-Prossaird Dec 8, 2025
0c5dda6
Merge master into sync-mautic5 - resolve conflicts
Hugo-Prossaird Dec 9, 2025
dd08709
Fix duplicate create/createBatch methods in Contacts.php
Hugo-Prossaird Dec 9, 2025
e1ba63a
Apply PHP CS Fixer - use Yoda style comparison
Hugo-Prossaird Dec 9, 2025
b5fd793
Update sendCustomToContact documentation with correct parameters
Hugo-Prossaird Dec 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 49 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,60 @@
"contributions": [
"code"
]
},
{
"login": "LadySolveig",
"name": "Martina Scholz",
"avatar_url": "https://avatars.githubusercontent.com/u/64533137?v=4",
"profile": "https://github.com/LadySolveig",
"contributions": [
"code"
]
},
{
"login": "escopecz",
"name": "John Linhart",
"avatar_url": "https://avatars.githubusercontent.com/u/1235442?v=4",
"profile": "http://johnlinhart.com",
"contributions": [
"review"
]
},
{
"login": "Rocksheep",
"name": "Marinus van Velzen",
"avatar_url": "https://avatars.githubusercontent.com/u/1311371?v=4",
"profile": "https://github.com/Rocksheep",
"contributions": [
"code"
]
},
{
"login": "PierreAmmeloot",
"name": "Pierre Ammeloot",
"avatar_url": "https://avatars.githubusercontent.com/u/4603318?v=4",
"profile": "https://pierre.ammeloot.fr",
"contributions": [
"userTesting"
]
},
{
"login": "matbcvo",
"name": "Martin Vooremäe",
"avatar_url": "https://avatars.githubusercontent.com/u/1006437?v=4",
"profile": "https://matbcvo.github.io",
"contributions": [
"code",
"test"
]
}
],
"contributorsPerLine": 7,
"projectName": "api-library",
"projectOwner": "mautic",
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": true
"skipCi": true,
"commitConvention": "angular",
"commitType": "docs"
}
4 changes: 2 additions & 2 deletions .ddev/local.config.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ return [
'version' => 'OAuth1a',

// Required for OAuth1a and OAuth2
'baseUrl' => 'http://localhost/mautic/index_dev.php',
'baseUrl' => 'http://localhost/mautic/index.php',

// Required for All tests
'apiUrl' => 'http://localhost/mautic/index_dev.php/api/',
'apiUrl' => 'http://localhost/mautic/index.php/api/',
// Required for EmailsTest
'testEmail' => 'notexisting@email.com',

Expand Down
5 changes: 5 additions & 0 deletions .ddev/mautic-local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ $parameters = [
'db_password' => 'db',
'admin_email' => 'mautic@ddev.local',
'admin_password' => 'mautic',
'mailer_from_name' => 'DDEV',
'mailer_from_email' => 'mautic@ddev.local',
'mailer_transport' => 'smtp',
'mailer_host' => 'localhost',
'mailer_port' => '1025',
];
4 changes: 1 addition & 3 deletions .ddev/mautic-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ setup_mautic() {
cp ../.ddev/mautic-local.php.dist ./app/config/local.php

printf "Installing Mautic...\n"
php bin/console mautic:install --force http://localhost/mautic \
--mailer_from_name="DDEV" --mailer_from_email="mautic@ddev.local" \
--mailer_transport="smtp" --mailer_host="localhost" --mailer_port="1025"
php bin/console mautic:install --force http://localhost/mautic
php bin/console cache:warmup --no-interaction --env=dev

printf "Enabling Twilio plugin for tests...\n"
Expand Down
28 changes: 28 additions & 0 deletions .github/ci-files/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# In all environments, the following files are loaded if they exist,
# the latter taking precedence over the former:
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
APP_ENV=test
APP_DEBUG=0

DB_HOST=127.0.0.1
DB_NAME=mautictest
DB_USER=root
DB_PORT=3306
DB_PASSWD=
MAUTIC_DB_PREFIX=
MAUTIC_TABLE_PREFIX=
MAUTIC_ENV=test
MAUTIC_ADMIN_USERNAME=admin
MAUTIC_ADMIN_PASSWORD=mautic
MAUTIC_DB_DRIVER=pdo_mysql
6 changes: 3 additions & 3 deletions .github/ci-files/local.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
|
*/
'userName' => 'admin',
'password' => 'mautic',
'password' => 'Maut1cR0cks!',

/*
|--------------------------------------------------------------------------
Expand All @@ -52,10 +52,10 @@
'version' => 'OAuth1a',

// Required for OAuth1a and OAuth2
'baseUrl' => 'http://localhost/index_dev.php',
'baseUrl' => 'http://localhost/index.php',

// Required for All tests
'apiUrl' => 'http://localhost/index_dev.php/api/',
'apiUrl' => 'http://localhost/index.php/api/',
// Required for EmailsTest
'testEmail' => 'notexisting@email.com',

Expand Down
3 changes: 3 additions & 0 deletions .github/ci-files/local.php → .github/ci-files/local_4.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
'db_password' => '',
'admin_email' => 'github-actions@mautic.org',
'admin_password' => 'mautic',
'mailer_transport' => 'smtp',
'mailer_host' => 'localhost',
'mailer_port' => '1025',
];
21 changes: 21 additions & 0 deletions .github/ci-files/local_5.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
* Parameter overrides for GitHub Actions.
*/
$parameters = [
'api_enabled' => true,
'api_enable_basic_auth' => true,
'db_driver' => 'pdo_mysql',
'db_host' => '127.0.0.1',
'db_table_prefix' => null,
'db_port' => getenv('DB_PORT'),
'db_name' => 'mautictest',
'db_user' => 'root',
'db_password' => '',
'admin_email' => 'github-actions@mautic.org',
'admin_password' => 'Maut1cR0cks!',
'mailer_from_name' => 'GitHub Actions',
'mailer_from_email' => 'github-actions@mautic.org',
'mailer_transport' => 'smtp',
'mailer_dsn' => 'smtp://localhost:1025',
];
66 changes: 41 additions & 25 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ on:
required: false
jobs:
phpunit:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: PHPUnit tests

services:
mysql:
image: mysql:5.7
image: mysql:8.4
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: mautictest
Expand All @@ -30,7 +30,7 @@ jobs:
image: mailhog/mailhog:latest
ports:
- 1025:1025

redis:
image: redis:6
ports:
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.3
ini-values: session.save_handler=redis, session.save_path="tcp://127.0.0.1:6379"
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql, pdo_mysql
coverage: pcov
Expand All @@ -57,14 +57,15 @@ jobs:
# We need the sed command at the bottom to set the PHP session save path to a directory that's writable for PHP
# NOTE: update the PHP version below as well if you're updating PHP!
run: |
sudo add-apt-repository ppa:ondrej/php -y
sudo add-apt-repository ppa:ondrej/apache2 -y
sudo apt-get install apache2 libapache2-mod-php8.0
sudo apt-get update -o Acquire::Retries=3
sudo apt-get install -y --no-install-recommends apache2 libapache2-mod-php8.3

sudo a2enmod rewrite
sudo sed -i 's,^session.save_handler =.*$,session.save_handler = redis,' /etc/php/8.0/apache2/php.ini
sudo sed -i 's,^;session.save_path =.*$,session.save_path = "tcp://127.0.0.1:6379",' /etc/php/8.0/apache2/php.ini
sudo sed -i 's,^session.save_handler =.*$,session.save_handler = redis,' /etc/php/8.3/apache2/php.ini
sudo sed -i 's,^;session.save_path =.*$,session.save_path = "tcp://127.0.0.1:6379",' /etc/php/8.3/apache2/php.ini
sudo sed -i 's,^memory_limit =.*$,memory_limit = 256M,' /etc/php/8.3/apache2/php.ini
sudo service apache2 restart
cat /etc/php/8.0/apache2/php.ini | grep session
cat /etc/php/8.3/apache2/php.ini | grep session

- name: Install dependencies
run: |
Expand All @@ -89,37 +90,49 @@ jobs:
sudo chown -R www-data:www-data /var/www/html
rm -rf /var/www/html/*
mv $GITHUB_WORKSPACE/mautic/* /var/www/html/
cp ./.github/ci-files/.env /var/www/html/
sed -i 's/DB_PORT=3306/DB_PORT=${{ job.services.mysql.ports[3306] }}/g' /var/www/html/.env
rm -f /var/www/html/.env.test

- name: Install Mautic
env:
DB_PORT: ${{ job.services.mysql.ports[3306] }}
run: |
composer install --prefer-dist --no-progress
cp $GITHUB_WORKSPACE/.github/ci-files/local.php ./app/config/local.php
php bin/console mautic:install http://localhost/ \
--force --mailer_from_name="GitHub Actions" --mailer_from_email="github-actions@mautic.org" \
--mailer_transport="smtp" --mailer_host="localhost" --mailer_port="1025" --env=dev
php bin/console cache:warmup --no-interaction --env=dev
if [[ "$(jq -r '.version | .[0:1]' app/release_metadata.json)" == "4" ]]; then
cp $GITHUB_WORKSPACE/.github/ci-files/local_4.php ./app/config/local.php
php bin/console mautic:install http://localhost/ --force --env=test --mailer_from_name="GitHub Actions" --mailer_from_email="github-actions@mautic.org"
sed -i "s/('prod',/('test',/g" ./index.php
echo "MAUTIC_VERSION=4" >> $GITHUB_ENV
else
cp $GITHUB_WORKSPACE/.github/ci-files/local_5.php ./config/local.php
php bin/console mautic:install http://localhost/ --force --env=test
echo "MAUTIC_VERSION=5" >> $GITHUB_ENV
fi

php bin/console cache:warmup --no-interaction --env=test
working-directory: /var/www/html/

# Enable Twilio plugin with random credentials (needed for MessagesTest to function, doesn't actually contact Twilio API).
- name: Enable Twilio plugin
run: |
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;}');"
php bin/console mautic:plugins:reload --env=dev
php bin/console mautic:plugins:reload --env=test
working-directory: /var/www/html

- name: Set correct ownership so Apache can access the files
run: sudo chown -R www-data:www-data /var/www/html

- name: Run tests
run: vendor/bin/paratest -p 3 --coverage-clover coverage.xml
run: |
sed -i 's/env name="MAUTIC_VERSION" value="5"/env name="MAUTIC_VERSION" value="${{ env.MAUTIC_VERSION }}"/g' ./phpunit.xml.dist
vendor/bin/phpunit --coverage-clover coverage.xml

- name: Upload code coverage
run: bash <(curl -s https://codecov.io/bash)

- name: Upload logs as artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: mautic-logs
Expand All @@ -132,17 +145,17 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: 'The daily API library tests against mautic/mautic have failed. Most likely a PR was merged recently which introduced a regression of some sort.'

cs:
runs-on: ubuntu-20.04
name: CS tests
tests:
runs-on: ubuntu-24.04
name: CS & PHPSTAN tests

steps:
- uses: actions/checkout@v3

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.3
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql, pdo_mysql

- name: Install dependencies
Expand All @@ -151,4 +164,7 @@ jobs:
composer install --prefer-dist --no-progress

- name: Run CS tests
run: vendor/bin/php-cs-fixer fix --config=.php_cs -v --dry-run --using-cache=no --show-progress=dots --diff $(git diff -- '*.php' --name-only --diff-filter=ACMRTUXB "HEAD~..HEAD")
run: vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -v --dry-run --using-cache=no --show-progress=dots --diff $(git diff -- '*.php' --name-only --diff-filter=ACMRTUXB "HEAD~..HEAD")

- name: Run PHPSTAN tests
run: composer phpstan
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
/tests/local.config.php_*
/tests/local.tokens.php
/tests/phpunit.phar
/composer.lock
/vendor
.DS_Store
/.php-cs-fixer.cache
.phpunit.result.cache
/.ddev/mautic-preference
/mautic
CLAUDE.md
20 changes: 0 additions & 20 deletions .php_cs

This file was deleted.

1 change: 1 addition & 0 deletions .well-known/funding-manifest-urls
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/mautic/mautic/blob/5.x/funding.json
Loading