-
Notifications
You must be signed in to change notification settings - Fork 56
117 lines (114 loc) · 5.34 KB
/
~reusable_e2e_all_OS.yaml
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
107
108
109
110
111
112
113
114
115
116
on:
workflow_call:
inputs:
BRANCH:
description: 'A branch passed from the caller workflow to run the test on.'
required: true
type: string
PACKAGE_VERSION:
description: 'A package-version of cli passed from the caller workflow. Which will be used to create and release plugins.'
required: true
type: string
FLEX_UI_VERSION:
description: 'A flex-ui version passed from the caller workflow. It decides the version of FLEX UI on tests will run on.'
required: true
type: string
NPM_IGNORE_PREFIX:
description: 'A npm-ignore-prefix passed from the caller workflow.'
required: true
type: string
SLACK_TITLE:
description: 'A title passed from the caller workflow, it will be used in slack notification.'
required: false
type: string
default: 'Flex Plugins CLI - E2E'
SLACK_MESSAGE:
description: 'A message passed from the caller workflow, it will be used in slack notification.'
required: false
type: string
default: 'E2E tests'
SEND_NOTIFICATION:
description: 'A flag passed from the caller workflow, it decides whether to send slack notification or not.'
required: true
type: boolean
secrets:
CONSOLE_EMAIL:
required: true
CONSOLE_PASSWORD:
required: true
CONSOLE_EMAIL_linux:
description: 'An email passed from the caller workflow, it will be used for login in linux environment.'
required: true
TWILIO_ACCOUNT_SID_linux:
description: 'An account-sid passed from the caller workflow, it will be used for authentication of APIs in linux environment.'
required: true
TWILIO_AUTH_TOKEN_linux:
description: 'An account-token passed from the caller workflow, it will be used for authentication of APIs in linux environment.'
required: true
CONSOLE_EMAIL_win32:
description: 'An email passed from the caller workflow, it will be used for login in windows environment.'
required: true
TWILIO_ACCOUNT_SID_win32:
description: 'An account-sid passed from the caller workflow, it will be used for authentication of APIs in windows environment.'
required: true
TWILIO_AUTH_TOKEN_win32:
description: 'An account-token passed from the caller workflow, it will be used for authentication of APIs in windows environment.'
required: true
CONSOLE_EMAIL_darwin:
description: 'An email passed from the caller workflow, it will be used for login in mac environment.'
required: true
TWILIO_ACCOUNT_SID_darwin:
description: 'An account-sid passed from the caller workflow, it will be used for authentication of APIs in mac environment.'
required: true
TWILIO_AUTH_TOKEN_darwin:
description: 'An account-token passed from the caller workflow, it will be used for authentication of APIs in mac environment.'
required: true
SLACK_WEB_HOOK:
description: 'A slack-web-hook passed from the caller workflow, it will be used for sending notifications.'
required: true
env:
BRANCH: ${{ inputs.BRANCH }}
NPM_IGNORE_PREFIX: ${{ inputs.NPM_IGNORE_PREFIX }}
PACKAGE_VERSION: ${{ inputs.PACKAGE_VERSION }}
FLEX_UI_VERSION: ${{ inputs.FLEX_UI_VERSION }}
CONSOLE_EMAIL: ${{ secrets.CONSOLE_EMAIL }}
CONSOLE_PASSWORD: ${{ secrets.CONSOLE_PASSWORD }}
CONSOLE_EMAIL_linux: ${{ secrets.CONSOLE_EMAIL_linux }}
TWILIO_ACCOUNT_SID_linux: ${{ secrets.TWILIO_ACCOUNT_SID_linux }}
TWILIO_AUTH_TOKEN_linux: ${{ secrets.TWILIO_AUTH_TOKEN_linux }}
CONSOLE_EMAIL_win32: ${{ secrets.CONSOLE_EMAIL_win32 }}
TWILIO_ACCOUNT_SID_win32: ${{ secrets.TWILIO_ACCOUNT_SID_win32 }}
TWILIO_AUTH_TOKEN_win32: ${{ secrets.TWILIO_AUTH_TOKEN_win32 }}
CONSOLE_EMAIL_darwin: ${{ secrets.CONSOLE_EMAIL_darwin }}
TWILIO_ACCOUNT_SID_darwin: ${{ secrets.TWILIO_ACCOUNT_SID_darwin }}
TWILIO_AUTH_TOKEN_darwin: ${{ secrets.TWILIO_AUTH_TOKEN_darwin }}
NODE_OPTIONS: --max-old-space-size=8192
jobs:
node20:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, windows-latest, macos-latest ]
uses: ./.github/workflows/~reusable_e2e_by_OS.yaml
with:
OS: ${{ matrix.os }}
BRANCH: main
NPM_IGNORE_PREFIX: ${{ inputs.NPM_IGNORE_PREFIX }}
PACKAGE_VERSION: ${{ inputs.PACKAGE_VERSION }}
FLEX_UI_VERSION: ${{ inputs.FLEX_UI_VERSION }}
SEND_NOTIFICATION: ${{ inputs.SEND_NOTIFICATION }}
SLACK_TITLE: ${{ inputs.SLACK_TITLE }}
SLACK_MESSAGE: ${{ inputs.SLACK_MESSAGE }}
secrets:
CONSOLE_EMAIL: ${{ secrets.CONSOLE_EMAIL }}
CONSOLE_PASSWORD: ${{ secrets.CONSOLE_PASSWORD }}
CONSOLE_EMAIL_linux: ${{ secrets.CONSOLE_EMAIL_linux }}
TWILIO_ACCOUNT_SID_linux: ${{ secrets.TWILIO_ACCOUNT_SID_linux }}
TWILIO_AUTH_TOKEN_linux: ${{ secrets.TWILIO_AUTH_TOKEN_linux }}
CONSOLE_EMAIL_win32: ${{ secrets.CONSOLE_EMAIL_win32 }}
TWILIO_ACCOUNT_SID_win32: ${{ secrets.TWILIO_ACCOUNT_SID_win32 }}
TWILIO_AUTH_TOKEN_win32: ${{ secrets.TWILIO_AUTH_TOKEN_win32 }}
CONSOLE_EMAIL_darwin: ${{ secrets.CONSOLE_EMAIL_darwin }}
TWILIO_ACCOUNT_SID_darwin: ${{ secrets.TWILIO_ACCOUNT_SID_darwin }}
TWILIO_AUTH_TOKEN_darwin: ${{ secrets.TWILIO_AUTH_TOKEN_darwin }}
SLACK_WEB_HOOK: ${{ secrets.SLACK_WEB_HOOK }}