-
Notifications
You must be signed in to change notification settings - Fork 3
81 lines (70 loc) · 2.04 KB
/
phpunit_57.yml
File metadata and controls
81 lines (70 loc) · 2.04 KB
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
# Shopware 5.7 run on PHP version 7.4
name: PHPUnit (SW 5.7)
on:
push:
branches:
- main
- develop
pull_request:
jobs:
build:
strategy:
matrix:
php-versions: ['7.4']
shopware-versions: ['5.7']
runs-on: ubuntu-latest
env:
DB_USER: root
DB_PASSWORD: shopware
DB_HOST: 127.0.0.1
DB_PORT: 3306
DB_NAME: shopware
SW_HOST: localhost
SW_BASE_PATH: ''
name: Shopware ${{ matrix.shopware-versions }} Test (PHP ${{ matrix.php-versions }})
steps:
- uses: mirromutth/mysql-action@v1.1
with:
mysql version: '5.7'
mysql database: shopware
mysql root password: shopware
- uses: actions/checkout@v2
with:
path: plugin-shopware-5
- name: Setup PHP with Composer 2
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, dom, gd, pdo_mysql, zip
coverage: xdebug
tools: composer:v2
- name: Validate dependencies
run: |
cd plugin-shopware-5/FinSearchUnified
composer validate
- name: Clone Shopware repository
uses: actions/checkout@v2
with:
repository: shopware/shopware
ref: ${{ matrix.shopware-versions }}
path: shopware
- name: Install Shopware
run: |
cd shopware
make init
- name: Install Plugin dependencies
run: |
cd plugin-shopware-5/FinSearchUnified
composer install --no-interaction
- name: Install Plugin
run: |
mv plugin-shopware-5/FinSearchUnified shopware/custom/plugins
cd shopware
php bin/console sw:plugin:refresh
php bin/console sw:plugin:install FinSearchUnified
php bin/console sw:plugin:activate FinSearchUnified
php bin/console sw:cache:clear
- name: Run test suite
run: |
cd shopware/custom/plugins/FinSearchUnified
composer test