Skip to content

Commit ea64e3c

Browse files
committed
OXDEV-8623 Adopted GitHub actions for module installation in root
1 parent e886975 commit ea64e3c

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/oxid-esales/graphql-base.yaml

+21-17
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
# {{ $name := "graphql-base" }}name: {{ $name }}
44
# {{ $repo := "OXID-eSales/graphql-base-module" }}repo: {{ $repo }}
55

6-
install_shop_with_modules:
6+
install:
77
cache:
88
prepared_shop: false
9+
git:
10+
repository: '{{ $repo }}'
11+
ref: &ref '{{ .Github.RefName }}'
12+
shop_url: 'https://github.com/OXID-eSales/graphql-base-module.git'
13+
shop_ref: *ref
914
composer:
1015
transform: |
1116
{
@@ -14,28 +19,25 @@ install_shop_with_modules:
1419
"oxid-esales/twig-component": "{{ .Data.global.composer.dev_ref }}",
1520
"oxid-esales/twig-admin-theme": "{{ .Data.global.composer.dev_ref }}",
1621
"oxid-esales/apex-theme": "{{ .Data.global.composer.dev_ref }}",
17-
"oxid-esales/developer-tools": "{{ .Data.global.composer.dev_ref }}",
18-
"{{ $org }}/{{ $name }}": "{{ .Data.global.composer.ref_name }}"
19-
},
20-
"autoload-dev":{
21-
"psr-4": {
22-
"OxidEsales\\EshopCommunity\\Tests\\": "./vendor/oxid-esales/oxideshop-ce/tests",
23-
"OxidEsales\\Graphql\\Base\\Tests\\": "./vendor/oxid-esales/graphql-base/tests"
24-
}
25-
},
26-
"repositories": {
27-
"{{ $org }}/{{ $name }}": {
28-
"type": "git",
29-
"url": "https://github.com/{{ $repo }}.git"
30-
}
22+
"oxid-esales/developer-tools": "{{ .Data.global.composer.dev_ref }}"
3123
}
3224
}
3325
custom_script_container: |
3426
perl -pi -e 'print "SetEnvIf Authorization \"(.*)\" HTTP_AUTHORIZATION=\$1\n\n" if $. == 1' source/.htaccess
27+
3528
vendor/bin/oe-console oe:database:reset --db-host=mysql --db-port=3306 --db-name=example --db-user=root --db-password=root --force
29+
vendor/bin/oe-console oe:module:install ./
30+
31+
vendor/bin/oe-eshop-doctrine_migration migrations:migrate
32+
vendor/bin/oe-eshop-db_views_generate
33+
3634
vendor/bin/oe-console oe:module:activate "{{ $ids }}"
3735
vendor/bin/oe-console oe:theme:activate apex
3836
37+
install_shop_with_modules:
38+
composer:
39+
root_url: ''
40+
3941
runscript: &runscript
4042
matrix:
4143
script: |
@@ -44,8 +46,10 @@ runscript: &runscript
4446
"graphql_base:tests-integration",
4547
"graphql_base:tests-codeception"
4648
]
49+
composer:
50+
early: true
4751
graphql_base:
48-
path: 'vendor/{{ $org}}/{{ $name }}'
52+
path: ''
4953

5054
runslim:
5155
<<: *runscript
@@ -60,7 +64,7 @@ runslim:
6064
sonarcloud:
6165
matrix:
6266
testplan: '["-"]'
63-
strip_path: '/var/www/vendor/{{ print $org }}/{{ print $name}}/'
67+
strip_path: '/var/www/'
6468
project_key: 'OXID-eSales_graphql-base-module'
6569
project_name: '{{ $org}}/{{ $name }}'
6670
parameters: |

0 commit comments

Comments
 (0)