forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.49 KB
/
cypress_tests_workflow.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
name: Cypress 12 experimental tests
on:
push:
branches: ['**']
pull_request:
branches: ['**']
paths-ignore:
- '**/*.md'
- 'docs/**'
- '.lycheeignore'
- 'CODEOWNERS'
- 'changelogs/fragments/**'
env:
CYPRESS_BROWSER: 'chromium'
CYPRESS_VISBUILDER_ENABLED: true
CYPRESS_DATASOURCE_MANAGEMENT_ENABLED: false
OSD_SNAPSHOT_SKIP_VERIFY_CHECKSUM: true
NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first'
COMMENT_TAG: '[MANUAL CYPRESS TEST RUN RESULTS]'
COMMENT_SUCCESS_MSG: ':white_check_mark: Cypress test run succeeded!'
COMMENT_FAILURE_MSG: ':x: Cypress test run failed!'
LATEST_VERSION: '3.0.0'
COVERAGE: true
COMBINATIONS: |
[
["SECURITY"],
["WORKSPACE"],
["DATA_SOURCE"],
["SECURITY", "WORKSPACE"],
["SECURITY", "DATA_SOURCE"],
["WORKSPACE", "DATA_SOURCE"],
["SECURITY", "WORKSPACE", "DATA_SOURCE"],
["FEATURE_FLAG"]
]
jobs:
trigger-cypress-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Trigger tests for combinations
run: |
echo "$COMBINATIONS" | jq -c '.[]' | while read -r combo; do
echo "Triggering tests for $folder_name with combination: $combo"
inputs=""
echo $combo | jq -r '.[]' | while read -r var; do
inputs="$inputs -f $var=true"
done
echo "Inputs for workflow dispatch: $inputs"
done