Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
31 changes: 31 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Integration tests
on: [push]
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
php-version: [8.1]

steps:
- uses: actions/checkout@v3

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ matrix.php-version }}

- uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-version }}
php_extensions: apcu bcmath gd intl pdo_mysql pcntl sodium
args: --ignore-platform-reqs

- uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-version }}
php_extensions: apcu bcmath gd intl pdo_mysql pcntl sodium
command: tests:integration
30 changes: 30 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Unit tests
on: [push]
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
php-version: [8.1]

steps:
- uses: actions/checkout@v3

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ matrix.php-version }}
- uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-version }}
php_extensions: apcu bcmath gd intl pdo_mysql pcntl sodium
args: --ignore-platform-reqs

- uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-version }}
php_extensions: apcu bcmath gd intl pdo_mysql pcntl sodium
command: tests:unit
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
composer.phar
/composer.phar
/vendor/
/.idea/
/build/*/*
!/build/*/composer.json
/composer.lock
/.phpunit.result.cache

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
20 changes: 20 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

SCRIPT_NAME=$0
DIRECTORY=$(dirname $SCRIPT_NAME)

cd $DIRECTORY/build || exit 1

build_magento() {
PREV_DIR=$(pwd)
cd $1 || return
composer install --no-dev --prefer-dist --ignore-platform-reqs --no-progress || exit 1
cd $PREV_DIR || return
}

for BUILD in $(find ./ -mindepth 1 -maxdepth 1 -type d -exec echo {} \;)
do
build_magento $BUILD &
done

wait
87 changes: 87 additions & 0 deletions build/2.4.4-p1/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"laminas/laminas-dependency-plugin": true,
"magento/*": true
},
"preferred-install": "dist",
"sort-packages": true
},
"version": "2.4.4-p1",
"require": {
"magento/product-community-edition": "2.4.4-p1",
"ecomdev/magento2-compiler": "*"
},
"autoload": {
"exclude-from-classmap": [
"**/dev/**",
"**/update/**",
"**/Test/**"
],
"files": [
"app/etc/NonComposerComponentRegistration.php"
],
"psr-0": {
"": [
"app/code/",
"generated/code/"
]
},
"psr-4": {
"Magento\\": "app/code/Magento/",
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/"
}
},
"require-dev": {
"allure-framework/allure-phpunit": "~1.5.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"friendsofphp/php-cs-fixer": "~3.4.0",
"lusitanian/oauth": "~0.8.10",
"magento/magento-coding-standard": "*",
"magento/magento2-functional-testing-framework": "^3.7",
"pdepend/pdepend": "~2.10.0",
"phpmd/phpmd": "^2.12.0",
"phpstan/phpstan": "^1.6.8",
"phpunit/phpunit": "~9.5.20",
"sebastian/phpcpd": "^6.0.3",
"squizlabs/php_codesniffer": "~3.6.0",
"symfony/finder": "^5.2"
},
"conflict": {
"gene/bluefoot": "*"
},
"autoload-dev": {
"psr-4": {
"Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/",
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/",
"Magento\\Tools\\": "dev/tools/Magento/Tools/",
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/"
}
},
"prefer-stable": true,
"extra": {
"magento-force": "override"
},
"repositories": [
{
"type": "composer",
"url": "https://mirror.mage-os.org"
},
{
"type": "path",
"url": "../../"
}
],
"minimum-stability": "dev"
}
87 changes: 87 additions & 0 deletions build/2.4.4/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"laminas/laminas-dependency-plugin": true,
"magento/*": true
},
"preferred-install": "dist",
"sort-packages": true
},
"version": "2.4.4",
"require": {
"magento/product-community-edition": "2.4.4",
"ecomdev/magento2-compiler": "*"
},
"autoload": {
"exclude-from-classmap": [
"**/dev/**",
"**/update/**",
"**/Test/**"
],
"files": [
"app/etc/NonComposerComponentRegistration.php"
],
"psr-0": {
"": [
"app/code/",
"generated/code/"
]
},
"psr-4": {
"Magento\\": "app/code/Magento/",
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/"
}
},
"require-dev": {
"allure-framework/allure-phpunit": "~1.5.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"friendsofphp/php-cs-fixer": "~3.4.0",
"lusitanian/oauth": "~0.8.10",
"magento/magento-coding-standard": "*",
"magento/magento2-functional-testing-framework": "^3.7",
"pdepend/pdepend": "~2.10.0",
"phpmd/phpmd": "^2.12.0",
"phpstan/phpstan": "^1.6.8",
"phpunit/phpunit": "~9.5.20",
"sebastian/phpcpd": "^6.0.3",
"squizlabs/php_codesniffer": "~3.6.0",
"symfony/finder": "^5.2"
},
"conflict": {
"gene/bluefoot": "*"
},
"autoload-dev": {
"psr-4": {
"Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/",
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/",
"Magento\\Tools\\": "dev/tools/Magento/Tools/",
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/"
}
},
"prefer-stable": true,
"extra": {
"magento-force": "override"
},
"repositories": [
{
"type": "composer",
"url": "https://mirror.mage-os.org"
},
{
"type": "path",
"url": "../../"
}
],
"minimum-stability": "dev"
}
87 changes: 87 additions & 0 deletions build/2.4.5/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"laminas/laminas-dependency-plugin": true,
"magento/*": true
},
"preferred-install": "dist",
"sort-packages": true
},
"version": "2.4.5",
"require": {
"magento/product-community-edition": "2.4.5",
"ecomdev/magento2-compiler": "*"
},
"autoload": {
"exclude-from-classmap": [
"**/dev/**",
"**/update/**",
"**/Test/**"
],
"files": [
"app/etc/NonComposerComponentRegistration.php"
],
"psr-0": {
"": [
"app/code/",
"generated/code/"
]
},
"psr-4": {
"Magento\\": "app/code/Magento/",
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/"
}
},
"require-dev": {
"allure-framework/allure-phpunit": "~1.5.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"friendsofphp/php-cs-fixer": "~3.4.0",
"lusitanian/oauth": "~0.8.10",
"magento/magento-coding-standard": "*",
"magento/magento2-functional-testing-framework": "^3.7",
"pdepend/pdepend": "~2.10.0",
"phpmd/phpmd": "^2.12.0",
"phpstan/phpstan": "^1.6.8",
"phpunit/phpunit": "~9.5.20",
"sebastian/phpcpd": "^6.0.3",
"squizlabs/php_codesniffer": "~3.6.0",
"symfony/finder": "^5.2"
},
"conflict": {
"gene/bluefoot": "*"
},
"autoload-dev": {
"psr-4": {
"Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/",
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/",
"Magento\\Tools\\": "dev/tools/Magento/Tools/",
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/"
}
},
"prefer-stable": true,
"extra": {
"magento-force": "override"
},
"repositories": [
{
"type": "composer",
"url": "https://mirror.mage-os.org"
},
{
"type": "path",
"url": "../../"
}
],
"minimum-stability": "dev"
}
Loading