-
Notifications
You must be signed in to change notification settings - Fork 53
98 lines (80 loc) · 2.36 KB
/
ci_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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: CI Pipeline
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- '.github/**'
- '**.md'
- 'makefile'
concurrency:
group: pr-${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
review:
name: Review Pipeline
uses: ./.github/workflows/step_review.yml
with:
PHP_VERSION: 7.4
# ------------------------------------------------------------------------------------------------------------------------
build:
name: Build Plugin
runs-on: ubuntu-latest
steps:
- name: Clone Code
uses: actions/checkout@v3
- 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
e2e:
name: E2E | Shopware ${{ matrix.shopware }}, PHP ${{ matrix.php }}
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- shopware: '6.6.10.1'
php: '8.3'
- shopware: '6.6.9.0'
php: '8.2'
- shopware: '6.5.8.12'
php: '8.2'
- shopware: '6.5.6.1'
php: '8.2'
- shopware: '6.5.5.2'
php: '8.2'
- shopware: '6.4.20.2'
php: '8.2'
- shopware: '6.4.5.0'
php: '7.4'
steps:
- name: Clone Code
uses: actions/checkout@v3
- name: Mount Build Cache
uses: actions/cache@v3
with:
key: cache-plugin-${{ github.run_id }}
path: ~/.build
- name: E2E Tests, Shopware ${{ matrix.shopware }}
uses: ./.github/actions/run-e2e
with:
# -------------------------------------------
SHOPWARE: ${{ matrix.shopware }}
PHP: ${{ matrix.php }}
# -------------------------------------------
MOLLIE_APIKEY_TEST: ${{ secrets.MOLLIE_APIKEY_TEST }}
# -------------------------------------------
RUN_CYPRESS: true
TESTRAIL: false
TESTRAIL_DOMAIN: ${{ secrets.TESTRAIL_DOMAIN }}
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
TESTRAIL_PASSWORD: ${{ secrets.TESTRAIL_PASSWORD }}