-
Notifications
You must be signed in to change notification settings - Fork 2
113 lines (98 loc) · 3.04 KB
/
phpunit.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
104
105
106
107
108
109
110
111
112
113
# Used for Shopware versions >= 6.4
name: PHPUnit
on:
push:
branches:
- main
- develop
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.4' ]
shopware-versions: [
'v6.4.6.0',
'v6.4.7.0',
'v6.4.8.2',
'v6.4.9.0',
'v6.4.10.1',
'v6.4.11.1',
'v6.4.12.0',
'v6.4.13.0',
'v6.4.14.0',
'v6.4.15.2',
'v6.4.16.1',
'v6.4.17.2',
'v6.4.18.1',
'v6.4.19.0',
'v6.4.20.2',
]
name: Shopware ${{ matrix.shopware-versions }} Test (PHP ${{ matrix.php-versions }})
steps:
- uses: mirromutth/[email protected]
with:
mysql version: '5.7'
mysql database: shopware
mysql root password: shopware
- uses: actions/checkout@v2
with:
path: plugin-shopware-6
- name: Setup Node 14
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Setup PHP with Composer 2
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: dom, gd, mbstring, pdo_mysql, zip
coverage: xdebug
tools: composer:2.1.5
- name: Validate dependencies
run: |
cd plugin-shopware-6
composer validate
- name: Clone Shopware repository
uses: actions/checkout@v2
with:
repository: shopware/development
ref: ${{ matrix.shopware-versions }}
path: development
- name: Add dependency conflicts
if: |
matrix.shopware-versions == 'v6.4.6.0' ||
matrix.shopware-versions == 'v6.4.7.0'
run: |
cd development
mv composer.json temp.json
jq -r '.conflict."symfony/framework-bundle" |= ">=5.3.14"' temp.json > composer.json
rm temp.json
- name: Install Shopware
run: |
cp plugin-shopware-6/.github/.psh.yaml.override development
cd development
composer require "shopware/platform:${{ matrix.shopware-versions }}@dev || trunk" --no-update
./psh.phar init
./psh.phar storefront:install-dependencies
- name: Install dependencies
run: |
cd plugin-shopware-6
composer install --no-interaction
cd src/Resources/app/storefront
npm ci
- name: Install plugin
run: |
mv plugin-shopware-6 development/custom/plugins
cd development
php bin/console plugin:refresh
php bin/console plugin:install --activate --clearCache FinSearch
- name: Run PHPUnit test suite
run: |
cd development/custom/plugins/plugin-shopware-6
SYMFONY_DEPRECATIONS_HELPER=disabled composer test
- name: Run storefront Jest test suite
run: |
cd development/custom/plugins/plugin-shopware-6/src/Resources/app/storefront
npm run test