-
Notifications
You must be signed in to change notification settings - Fork 12
106 lines (100 loc) · 3.01 KB
/
ci-pipeline.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
name: CI Pipeline Shopware 5
on:
push:
branches:
- feature/CR-SET-14
jobs:
build:
permissions:
contents: read
pages: write
id-token: write
name: Build environment
runs-on: ubuntu-latest
steps:
- name: Clone Code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Create Cache Directories
run: |
mkdir -p ~/.build
- name: Mount Build Cache
uses: actions/cache@v3
with:
key: cache-plugin-${{ github.run_id }}
path: ~/.build
- name: Build Plugin
uses: ./.github/actions/build_plugin
run:
name: E2E | Shopware ${{ matrix.shopware }}, PHP ${{ matrix.php }}, Browser ${{matrix.browser}}
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- shopware: '5.6.10'
php: '7.4'
port: 443
browser: 'chromium'
device: 'Desktop Chrome'
- shopware: '5.7.18'
php: '7.4'
port: 443
browser: 'firefox'
device: 'Desktop Firefox'
- shopware: '5.7.8'
php: '8.1'
port: 443
browser: 'chromium'
device: 'Desktop Chrome'
#
# - shopware: '5.6.10'
# php: '7.4'
# port: 443
# browser: 'firefox'
# device: 'Desktop Firefox'
# - shopware: '5.7.18'
# php: '7.4'
# port: 443
# browser: 'firefox'
# device: 'Desktop Firefox'
# - shopware: '5.7.8'
# php: '8.1'
# port: 443
# browser: 'firefox'
# device: 'Desktop Firefox'
steps:
- name: Clone Code
uses: actions/checkout@v3
with:
path: main
- name: Mount Build Cache
uses: actions/cache@v3
with:
key: cache-plugin-${{ github.run_id }}
path: ~/.build
- name: E2E Tests, Shopware ${{ matrix.shopware }}
uses: ./main/.github/actions/run_e2e
with:
SHOPWARE: ${{ matrix.shopware }}
PHP: ${{ matrix.php }}
NODE: 20
PORT: ${{ matrix.port }}
NGROK: ${{ secrets.NGROK }}
GH_PAT: ${{ secrets.GH_PAT }}
API_KEY_TEST: ${{ secrets.API_KEY_TEST }}
API_KEY_LIVE: ${{ secrets.API_KEY_LIVE }}
MERCHANT_ACCOUNT_TEST: ${{ secrets.MERCHANT_ACCOUNT_TEST }}
MERCHANT_ACCOUNT_LIVE: ${{ secrets.MERCHANT_ACCOUNT_LIVE }}
ADMIN_USERNAME: ${{ secrets.ADMIN_USERNAME }}
ADMIN_PASSWORD: ${{ secrets.ADMIN_PASSWORD }}
SHOPWARE_TEST_REPO: ${{secrets.SHOPWARE_TEST_REPO}}
COMMON_TEST_REPO: ${{secrets.COMMON_TEST_REPO}}
PAY_PAL_EMAIL: ${{secrets.PAY_PAL_EMAIL}}
PAY_PAL_PASSWORD: ${{secrets.PAY_PAL_PASSWORD}}
BROWSER: ${{ matrix.browser }}
DEVICE: ${{ matrix.device }}