Skip to content

Commit d7812f1

Browse files
committed
Copy generic CI/CD files
1 parent dee0067 commit d7812f1

5 files changed

Lines changed: 41 additions & 3 deletions

File tree

.github/workflows/integration-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
image: yireo/opensearch-dummy
2727
env:
2828
'discovery.type': single-node
29-
'xpack.security.enabled': false
30-
ES_JAVA_OPTS: "-Xms128m -Xmx128m"
29+
#'xpack.security.enabled': false
30+
ES_JAVA_OPTS: "-Xms256m -Xmx256m"
3131
options: --health-cmd="curl localhost:9200/_cluster/health?wait_for_status=yellow&timeout=60s" --health-interval=10s --health-timeout=5s --health-retries=3
3232
redis:
3333
image: redis
@@ -41,6 +41,8 @@ jobs:
4141
export COMPOSER_NAME=`cat .module.ini | grep COMPOSER_NAME | cut -f2 -d= | tr -d '"'`
4242
cp -R ${GITHUB_WORKSPACE} /tmp/magento/package-source
4343
cd /tmp/magento
44+
composer config --auth gitlab-token.gitlab.yireo.com ${{ secrets.GITLAB_TOKEN }}
45+
composer config repositories.loki-checkout composer https://gitlab.yireo.com/api/v4/group/loki-checkout/-/packages/composer/packages.json
4446
composer config repositories.local-source path package-source/
4547
composer require --prefer-source -- ${COMPOSER_NAME}:@dev yireo/magento2-integration-test-helper
4648

.github/workflows/static-tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Magento 2 Static Tests
2+
on: ['push', 'pull_request']
3+
4+
jobs:
5+
static-tests:
6+
name: Magento 2 Static Tests
7+
runs-on: self-hosted
8+
#runs-on: ubuntu-latest
9+
container:
10+
image: yireo/magento2installed:2.4.7-p4
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v4
14+
15+
- name: Add module source
16+
run: |
17+
export COMPOSER_NAME=`cat .module.ini | grep COMPOSER_NAME | cut -f2 -d= | tr -d '"'`
18+
cp -R ${GITHUB_WORKSPACE} /tmp/magento/package-source
19+
cd /tmp/magento
20+
composer config repositories.local-source path package-source/
21+
composer config --no-plugins allow-plugins true
22+
composer require --prefer-source -- ${COMPOSER_NAME}:@dev
23+
composer require --dev --prefer-source -- phpstan/phpstan bitexpert/phpstan-magento phpstan/extension-installer
24+
25+
- name: Run Magento 2 PHPStan Tests
26+
run: |
27+
export COMPOSER_NAME=`cat .module.ini | grep COMPOSER_NAME | cut -f2 -d= | tr -d '"'`
28+
export LEVEL=`echo '<?= json_decode(file_get_contents("MODULE.json"), true)["phpstan_level"];' | php`
29+
php -d memory_limit=4G /tmp/magento/vendor/bin/phpstan analyse --level $LEVEL ${GITHUB_WORKSPACE}
30+

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
test -z "$COMPOSER_NAME}" && (echo "No composer name found" && exit 1)
1818
cp -R $GITHUB_WORKSPACE /tmp/magento/package-source
1919
cd /tmp/magento
20+
composer config --auth gitlab-token.gitlab.yireo.com ${{ secrets.GITLAB_TOKEN }}
21+
composer config repositories.loki-checkout composer https://gitlab.yireo.com/api/v4/group/loki-checkout/-/packages/composer/packages.json
2022
composer config repositories.local-source path package-source/
2123
composer require --prefer-source -W -- $COMPOSER_NAME:@dev
2224

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.1.12] - 11 December 2025
10+
### Fixed
11+
- Rename LOKI_BASE_URL to BASE_URL
12+
913
## [1.1.11] - 21 November 2025
1014
### Fixed
1115
- Add compatibility with `MageOS_AlpineLoader`

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loki/magento2-base",
3-
"version": "1.1.11",
3+
"version": "1.1.12",
44
"description": "Base utilities for any Loki behaviour",
55
"license": "OSL-3.0",
66
"type": "magento2-module",

0 commit comments

Comments
 (0)