-
Notifications
You must be signed in to change notification settings - Fork 48
88 lines (79 loc) · 2.7 KB
/
b2b-b2c-demo-shop-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: B2B + B2C Demoshop tests
on:
- push
env:
SPRYKER_TESTING_ENABLED: 1
PROJECT: suite
jobs:
functional_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform-image: [
'spryker/php:8.1-alpine3.16',
'spryker/php:8.1-debian'
]
application-store: [ 'DE' ]
env: [
'ci.mysql',
'ci.pgsql'
]
repo: [
'https://github.com/spryker-shop/b2b-demo-shop.git',
'https://github.com/spryker-shop/b2c-demo-shop.git'
]
name: "Function Tests(Image: ${{ matrix.platform-image }}, Environment: ${{ matrix.env }}, Repo: ${{ matrix.repo }})"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clone demo shop
run: cd ../ && git clone --depth=3 --branch=master ${{ matrix.repo }} demo-shop && cp -R docker-sdk demo-shop
- name: Provide env variables
run: |
export SPRYKER_PLATFORM_IMAGE=${{ matrix.platform-image}}
export APPLICATION_ENV=${{ matrix.env }}
export APPLICATION_STORE=${{ matrix.application-store }}
- name: Run script
run: |
cd ../demo-shop
docker-sdk/sdk boot deploy.ci.functional.mariadb.yml -v
docker-sdk/sdk up -t -v
docker-sdk/sdk testing codecept run -c codeception.functional.yml
glue_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform-image: [
'spryker/php:8.1-alpine3.16',
'spryker/php:8.1-debian'
]
application-store: [ 'DE' ]
env: [
'ci.mysql',
'ci.pgsql'
]
repo: [
'https://github.com/spryker-shop/b2b-demo-shop.git',
'https://github.com/spryker-shop/b2c-demo-shop.git'
]
name: "Glue Tests(Image: ${{ matrix.platform-image }}, Environment: ${{ matrix.env }}, Repo: ${{ matrix.repo }})"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clone demo shop
run: cd ../ && git clone --depth=3 --branch=master ${{ matrix.repo }} demo-shop && cp -R docker-sdk demo-shop
- name: Provide env variables
run: |
export SPRYKER_PLATFORM_IMAGE=${{ matrix.platform-image}}
export APPLICATION_ENV=${{ matrix.env }}
export APPLICATION_STORE=${{ matrix.application-store }}
- name: Run script
run: |
cd ../demo-shop
docker-sdk/sdk boot deploy.ci.api.yml -v
docker-sdk/sdk up -t -v
docker-sdk/sdk testing codecept fixtures
docker-sdk/sdk testing console queue:worker:start --stop-when-empty
docker-sdk/sdk testing codecept run -c codeception.api.yml