forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (85 loc) · 2.55 KB
/
jest.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Jest
on:
push:
branches:
- '6.2'
- master
pull_request:
jobs:
admin:
runs-on: ubuntu-latest
env:
DEVELOPMENT_BRANCH: 6.2
steps:
- name: Clone development
run: git clone -b $DEVELOPMENT_BRANCH https://github.com/shopware/development.git && cd development && rm -rf platform
- name: Clone platform
uses: actions/checkout@v2
with:
path: development/platform
- name: Fix platform for composer
run: |
cd development/platform
git fetch --prune --unshallow
git checkout master
git checkout -
cd ..
git reset --hard @
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer, prestissimo
coverage: none
- name: Start MySQL
run: ./development/platform/.github/setup-db.sh mysql:5.7
- name: Start Elasticsearch
run: ./development/platform/.github/setup-es.sh elastic/elasticsearch:7.1.1
- name: Install Shopware
run: |
cd development
cp platform/.github/.psh.yaml.override .
./psh.phar init
- name: Run Jest Admin
run: |
cd development
./psh.phar administration:install-dependencies
./psh.phar administration:unit
storefront:
runs-on: ubuntu-latest
env:
DEVELOPMENT_BRANCH: 6.2-BoostDay
steps:
- name: Clone development
run: git clone -b $DEVELOPMENT_BRANCH https://github.com/shopware/development.git && cd development && rm -rf platform
- name: Clone platform
uses: actions/checkout@v2
with:
path: development/platform
- name: Fix platform for composer
run: |
cd development/platform
git fetch --prune --unshallow
git checkout master
git checkout -
cd ..
git reset --hard @
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer, prestissimo
coverage: none
- name: Start MySQL
run: ./development/platform/.github/setup-db.sh mysql:5.7
- name: Start Elasticsearch
run: ./development/platform/.github/setup-es.sh elastic/elasticsearch:7.1.1
- name: Install Shopware
run: |
cd development
cp platform/.github/.psh.yaml.override .
./psh.phar init
- name: Run Jest Admin
run: |
cd development
export PROJECT_ROOT=$(pwd)
./psh.phar storefront:install-dependencies
npm --prefix vendor/shopware/platform/src/Storefront/Resources/app/storefront/ run unit