-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.18 KB
/
test-php.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
name: Tests
on:
push:
branches:
- main
- develop
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1', '8.2' ]
shopware-versions: [
'6.5.4.1',
'6.5.5.2',
'6.5.6.1',
'6.5.7.3',
]
name: Shopware ${{ matrix.shopware-versions }} Test (PHP ${{ matrix.php-versions }})
steps:
- uses: actions/checkout@v4
with:
path: nosto-shopware6
- name: Setup Runner
uses: ./nosto-shopware6/.github/action/setup_runner
with:
php-version: ${{ matrix.php-versions }}
- name: Setup Plugin
uses: ./nosto-shopware6/.github/action/setup_plugin
- name: Setup Shopware Shop
uses: ./nosto-shopware6/.github/action/setup_shop
with:
shopware-version: ${{ matrix.shopware-versions }}
- name: Install test dependencies for SW
run: |
cd shopware
composer require --dev symfony/test-pack
- name: Run PHPUnit test suite
run: |
cd shopware/custom/plugins/nosto-shopware6
SYMFONY_DEPRECATIONS_HELPER=disabled composer test