Skip to content

Commit

Permalink
OXDEV-8316 Run CD tests on module as root package installation
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Oct 15, 2024
1 parent ba7c82f commit ee1d689
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/oxid-esales/module-template.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
install_shop_with_modules:
install:
cache:
prepared_shop: false
git:
repository: 'OXID-eSales/module-template'
ref: &ref '{{ .Github.RefName }}'
shop_url: 'https://github.com/OXID-eSales/module-template.git'
shop_ref: *ref
composer:
root_url: ''
transform: |
{
"require": {
"oxid-esales/oxideshop-ce": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-component": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/apex-theme": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/module-template": "{{ .Data.global.composer.ref_name }}"
},
"repositories": {
"oxid-esales/module-template": {
"type": "git",
"url": "https://github.com/OXID-eSales/module-template.git"
}
"oxid-esales/apex-theme": "{{ .Data.global.composer.dev_ref }}"
}
}
custom_script_container: |
vendor/bin/oe-console oe:database:reset --db-host=mysql --db-port=3306 --db-name=example --db-user=root --db-password=root --force
vendor/bin/oe-console oe:module:install ./
vendor/bin/oe-console oe:module:activate oe_moduletemplate
vendor/bin/oe-console oe:theme:activate apex
install_shop_with_modules:
composer:
root_url: ''

runscript: &runscript
matrix:
Expand All @@ -30,7 +35,7 @@ runscript: &runscript
"module_template:tests-codeception"
]
module_template:
path: 'vendor/oxid-esales/module-template'
path: ''

runslim:
<<: *runscript
Expand All @@ -45,7 +50,7 @@ runslim:
sonarcloud:
matrix:
testplan: '["-"]'
strip_path: '/var/www/vendor/oxid-esales/module-template/'
strip_path: '/var/www/'
project_key: 'OXID-eSales_module-template'
project_name: 'oxid-esales/module-template'
organization: 'oxid-esales'
Expand Down

0 comments on commit ee1d689

Please sign in to comment.