Skip to content

Commit a1f51dc

Browse files
committed
Copy generic CI/CD files
1 parent 0737710 commit a1f51dc

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/integration-tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
image: yireo/magento2installed:2.4.8-p3
1111
services:
1212
mysql:
13-
image: mysql:8.0
13+
image: yireo/mariadb:10
1414
env:
1515
MYSQL_ROOT_PASSWORD: root
1616
MYSQL_USER: magento2
@@ -30,8 +30,11 @@ jobs:
3030
- name: Checkout sources
3131
uses: actions/checkout@v4
3232

33-
- name: Enable log_bin_trust_function_creators
34-
run: mysql -h mysql -uroot -proot -e "SET GLOBAL log_bin_trust_function_creators=1;"
33+
- name: Apply patch for reporting memory under Alpine
34+
run: cd /tmp/magento && curl -fsSL https://patch-diff.githubusercontent.com/raw/magento/magento2/pull/39216.diff | git apply
35+
36+
- name: Apply patch for changing MySQL client configuration
37+
run: cd /tmp/magento && curl -fsSL https://patch-diff.githubusercontent.com/raw/magento/magento2/pull/40410.diff | git apply
3538

3639
- name: Configure GitLab
3740
run: |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
return [
3+
'client-mariadb' => [
4+
'disable-ssl',
5+
],
6+
];
7+

.github/workflows/static-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- name: Run Magento 2 PHPStan Tests
3333
run: |
3434
export COMPOSER_NAME=`cat .module.ini | grep COMPOSER_NAME | cut -f2 -d= | tr -d '"'`
35-
export LEVEL=`echo '<?= json_decode(file_get_contents("MODULE.json"), true)["phpstan_level"];' | php`
35+
export LEVEL=$(jq -r '.phpstan_level // 1' MODULE.json)
36+
test -f /tmp/magento/phpstan.neon || echo 'parameters:' > /tmp/magento/phpstan.neon
3637
php -d memory_limit=4G /tmp/magento/vendor/bin/phpstan analyse --level $LEVEL ${GITHUB_WORKSPACE}
3738

0 commit comments

Comments
 (0)