forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (54 loc) · 2.18 KB
/
03-e2e.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
name: E2E
on:
push:
branches:
- trunk
pull_request:
jobs:
E2E:
runs-on: ubuntu-latest
container: shopware/development:7.4-composer-2
continue-on-error: true
strategy:
matrix:
test-directory:
- "cypress/integration/administration/settings/**/*"
- "cypress/integration/administration/catalogue/**/*,cypress/integration/administration/media-marketing/**/*,cypress/integration/administration/customer/**/*"
- "cypress/integration/administration/content/**/*,cypress/integration/administration/general/**/*,cypress/integration/administration/order/**/*,cypress/integration/administration/rule-product-stream/**/*"
- "cypress/integration/storefront/**/*"
env:
SHOPWARE_HTTP_CACHE_ENABLED: 0
APP_ENV: e2e
CYPRESS_baseUrl: http://localhost:8000
CYPRESS_localUsage: 1
DATABASE_URL: mysql://root:root@database:3306/root
APP_URL: http://localhost:8000
APP_SECRET: devsecret
SHOPWARE_ES_HOSTS: elasticsearch:9200
BLUE_GREEN_DEPLOYMENT: 1
services:
database:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: root
steps:
- name: Clone platform
uses: actions/checkout@v2
- name: Install Shopware
run: |
composer run setup
composer run init:e2e
composer run e2e:prepare
chown -R application:application .
export WEB_DOCUMENT_ROOT=$(pwd)/public
/entrypoint supervisord > /dev/null 2>&1 &
- name: Cypress run
run: |
composer run e2e:cypress -- run --browser chrome --spec "${{ matrix.test-directory }}" --headless
- uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress
path: |
var/log