-
Notifications
You must be signed in to change notification settings - Fork 54
80 lines (71 loc) · 3.15 KB
/
compatibility_pipe.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
name: Compatibility Pipeline
run-name: Shopware ${{ github.event.inputs.swVersion }}, PHP ${{ github.event.inputs.phpVersion }}
on:
workflow_dispatch:
inputs:
swVersion:
description: 'Shopware Version'
required: true
phpVersion:
description: 'PHP Version'
required: true
jobs:
e2e:
name: Plugin v${{ matrix.plugin }} | Shopware ${{ github.event.inputs.swVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- plugin: '3.6.0'
url: 'https://github.com/mollie/Shopware6/releases/download/v3.6.0/MolliePayments-v3.6.0.zip'
- plugin: '3.5.0'
url: 'https://github.com/mollie/Shopware6/releases/download/v3.5.0/MolliePayments-v3.5.0.zip'
- plugin: '3.4.0'
url: 'https://github.com/mollie/Shopware6/releases/download/v3.4.0/MolliePayments-v3.4.0.zip'
- plugin: '3.3.0'
url: 'https://github.com/mollie/Shopware6/releases/download/v3.3.0/MolliePayments-v3.3.0.zip'
- plugin: '3.2.0'
url: 'https://github.com/mollie/Shopware6/releases/download/v3.2.0/MolliePayments-v3.2.0.zip'
- plugin: '3.1.0'
url: 'https://github.com/mollie/Shopware6/releases/download/v3.1.0/MolliePayments-v3.1.0.zip'
- plugin: '3.0.0'
url: 'https://github.com/mollie/Shopware6/releases/download/v3.0.0/MolliePayments-v3.0.0.zip'
- plugin: '2.5.0'
url: 'https://github.com/mollie/Shopware6/releases/download/v2.5.0/MolliePayments-v2.5.0.zip'
steps:
- name: Clone Latest Code for Workflows
uses: actions/checkout@v3
- name: Clone specific plugin version for (old) Cypress tests
uses: actions/checkout@v3
with:
ref: refs/tags/v${{ matrix.plugin }}
path: repo-old-version
- name: Replace latest Cypress folder with old one
run: |
# we want to run the latest workflow setups, but with the old Cypress tests
rm -rf ./tests/Cypress
mkdir ./tests/Cypress
cp -r ./repo-old-version/tests/Cypress/. ./tests/Cypress
rm -rf repo-old-version
- name: Create Build Directory
run: |
mkdir -p ~/.build
- name: Download MolliePayments-${{ matrix.plugin }}.zip
run: |
# -L is required, otherwise ZIP is corrupt
curl -L ${{ matrix.url }} --output ~/.build/MolliePayments.zip
- name: Run Cypress for Plugin ${{ matrix.plugin }}
uses: ./.github/actions/run-e2e
with:
# -------------------------------------------
SHOPWARE: ${{ github.event.inputs.swVersion }}
PHP: ${{ github.event.inputs.phpVersion }}
# -------------------------------------------
MOLLIE_APIKEY_TEST: ${{ secrets.MOLLIE_APIKEY_TEST }}
# -------------------------------------------
CYPRESS_RESULTS_SUFFIX: _plugin_v${{ matrix.plugin }}
TESTRAIL: false
# we have to remove old tests from the history, because e.g.
# SEPA Direct Debit is not working anymore when being executed now...
REMOVE_DEPRECATED_TESTS: true