Skip to content

Commit

Permalink
OXDEV-7732: Add EE trigger and light workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed May 2, 2024
1 parent cefd302 commit 66cc498
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 16 deletions.
73 changes: 73 additions & 0 deletions .github/oxid-esales/graphql_configuration_access_light.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
install_shop_with_modules:
cache:
prepared_shop: false
composer:
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/developer-tools": "{{ .Data.global.composer.dev_ref }}",
"oxid-esales/graphql-configuration-access": "{{ .Data.global.composer.ref_name }}",
"codeception/module-rest": "^3.3",
"codeception/module-phpbrowser": "^3.0",
"codeception/c3": "^2.9"
},
"config":{
"allow-plugins":{
"oxid-esales/oxideshop-composer-plugin": true,
"oxid-esales/oxideshop-unified-namespace-generator": true,
"codeception/c3": true
}
},
"repositories": {
"oxid-esales/graphql-configuration-access": {
"type": "git",
"url": "https://github.com/OXID-eSales/graphql-configuration-access.git"
}
}
}
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:activate oe_graphql_base
vendor/bin/oe-console oe:module:activate oe_graphql_configuration_access
vendor/bin/oe-console oe:theme:activate apex
runscript: &runscript
matrix:
script: |
[
"configuration_module:phpunit",
"configuration_module:phpintegration",
"configuration_module:codeception"
]
configuration_module:
path: 'vendor/oxid-esales/graphql-configuration-module'

runslim:
<<: *runscript
matrix:
script: |
[
"configuration_module:phpcs",
"configuration_module:phpstan",
"configuration_module:phpmd",
"configuration_module:deptrac",
]
sonarcloud:
matrix:
testplan: '["-"]'
strip_path: '/var/www/vendor/oxid-esales/graphql-configuration-access/'
project_key: 'OXID-eSales_graphql-configuration-access'
project_name: 'oxid-esales/graphql-configuration-access'
parameters: |
-Dsonar.language=php
-Dsonar.scm.provider=git
-Dsonar.sources=src
-Dsonar.tests=tests
finish:
slack_title: 'Configuration Access module ({{ .Data.global.git.shop_ref }}) by {{ .Github.Actor }}'
30 changes: 15 additions & 15 deletions .github/workflows/trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:

jobs:
configuration_module_php82_mysql80:
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yml@v4
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4
with:
testplan: '~/defaults/7.1.x.yml,~/defaults/php8.2_mysql8.0_only.yml,~/graphql-configuration-access.yml'
testplan: '~/defaults/7.1.x.yml,~/defaults/php8.2_mysql8.0_only.yml,~/graphql-configuration-access_light.yml'
runs_on: '"ubuntu-latest"'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
Expand All @@ -22,16 +22,16 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

# push_module_ee:
# runs-on: ubuntu-latest
# steps:
# - name: Trigger EE workflow and wait for results
# uses: convictional/trigger-workflow-and-wait@v1.6.5
# with:
# owner: oxid-esales
# repo: module-workflows
# github_user: ${{ secrets.CI_USER }}
# github_token: ${{ secrets.GH_CI_JENKINS_TOKEN }}
# workflow_file_name: storefront_workflow.yml
# ref: "b-7.1.x"
# client_payload: "{\"php\": \"8.1\", \"mysql\": \"5.7\", \"edition\": \"ee\", \"ref\": \"${{ github.ref_name }}\"}"
push_module_ee:
runs-on: ubuntu-latest
steps:
- name: Trigger EE workflow and wait for results
uses: convictional/trigger-workflow-and-wait@v1.6.5
with:
owner: oxid-esales
repo: module-workflows
github_user: ${{ secrets.CI_USER }}
github_token: ${{ secrets.GH_CI_JENKINS_TOKEN }}
workflow_file_name: configuration_access_workflow.yml
ref: "b-7.1.x-configuration_access_module-OXDEV-7732"
client_payload: "{\"limit\": \"PHP8.2/MySQL8.0\", \"edition\": \"ee\", \"ref\": \"${{ github.ref_name }}\"}"
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"@deptrac"
],

"phpunit": "vendor/bin/phpunit --bootstrap=/var/www/source/bootstrap.php --config=tests/",
"phpunit": "vendor/bin/phpunit --bootstrap=/var/www/source/bootstrap.php --config=tests/ --testsuite=Unit",
"phpintegration": "vendor/bin/phpunit --bootstrap=/var/www/source/bootstrap.php --config=tests/ --testsuite=Integration",
"phpunit-coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --bootstrap=/var/www/source/bootstrap.php --config=tests/ --coverage-html=tests/reports/coverage",

"codeception": [
Expand Down

0 comments on commit 66cc498

Please sign in to comment.