Skip to content

Commit a895326

Browse files
authored
PMM-7 matrix in main (#799)
1 parent b37b777 commit a895326

1 file changed

Lines changed: 161 additions & 0 deletions

File tree

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
name: "E2E tests Matrix (CodeceptJS)"
2+
3+
on:
4+
schedule:
5+
- cron: '0 2 * * *'
6+
workflow_dispatch:
7+
inputs:
8+
pmm_ui_tests_branch:
9+
description: 'pmm-ui-tests repository branch(CLI tests)'
10+
default: 'v3'
11+
required: false
12+
type: string
13+
pmm_qa_branch:
14+
description: 'qa-integration repository branch(for setup)'
15+
default: 'v3'
16+
required: false
17+
type: string
18+
pmm_server_image:
19+
description: 'PMM Server docker image'
20+
default: 'perconalab/pmm-server:3-dev-latest'
21+
required: true
22+
type: string
23+
pmm_client_image:
24+
description: 'pmm-client docker image'
25+
default: 'perconalab/pmm-client:3-dev-latest'
26+
required: false
27+
type: string
28+
pmm_client_version:
29+
description: 'PMM Client version (3-dev-latest|pmm3-rc|x.xx.x|https...)'
30+
default: '3-dev-latest'
31+
required: false
32+
type: string
33+
sha:
34+
description: "SHA (leave default if running manually)"
35+
default: 'null'
36+
required: false
37+
type: string
38+
39+
workflow_call:
40+
inputs:
41+
pmm_ui_tests_branch:
42+
required: false
43+
type: string
44+
pmm_qa_branch:
45+
required: false
46+
type: string
47+
pmm_server_image:
48+
required: true
49+
type: string
50+
pmm_client_image:
51+
required: false
52+
type: string
53+
pmm_client_version:
54+
required: false
55+
type: string
56+
sha:
57+
required: false
58+
type: string
59+
60+
secrets:
61+
BACKUP_LOCATION_ACCESS_KEY:
62+
required: false
63+
BACKUP_LOCATION_SECRET_KEY:
64+
required: false
65+
66+
jobs:
67+
settings_and_cli:
68+
name: Settings and cli UI tests
69+
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
70+
secrets: inherit
71+
with:
72+
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
73+
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
74+
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
75+
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
76+
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
77+
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
78+
setup_services: '--database pgsql'
79+
tags_for_tests: '@settings|@cli'
80+
81+
ssl_mysql:
82+
name: MySQL SSL tests
83+
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
84+
secrets: inherit
85+
with:
86+
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
87+
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
88+
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
89+
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
90+
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
91+
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
92+
setup_services: '--database ssl_mysql'
93+
tags_for_tests: '@ssl-mysql'
94+
95+
ssl_mongo:
96+
name: MongoDB SSL tests
97+
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
98+
secrets: inherit
99+
with:
100+
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
101+
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
102+
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
103+
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
104+
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
105+
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
106+
setup_services: '--database ssl_psmdb'
107+
tags_for_tests: '@ssl-mongo'
108+
109+
ssl_postgres:
110+
name: PDPGSQL SSL tests
111+
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
112+
secrets: inherit
113+
with:
114+
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
115+
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
116+
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
117+
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
118+
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
119+
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
120+
setup_services: '--database ssl_pdpgsql=16'
121+
tags_for_tests: '@ssl-postgres'
122+
123+
experimental:
124+
name: Experimental UI tests
125+
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
126+
secrets: inherit
127+
with:
128+
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
129+
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
130+
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
131+
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
132+
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
133+
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
134+
setup_services: '--database pdpgsql'
135+
tags_for_tests: '@experimental'
136+
137+
disconnect:
138+
name: Disconnect from PMM Server
139+
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
140+
secrets: inherit
141+
with:
142+
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
143+
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
144+
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
145+
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
146+
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
147+
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
148+
setup_services: '--help'
149+
tags_for_tests: '@disconnect'
150+
151+
fb_tests:
152+
name: FB E2E tests
153+
uses: ./.github/workflows/fb-e2e-suite.yml
154+
secrets: inherit
155+
with:
156+
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
157+
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
158+
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
159+
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
160+
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
161+
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}

0 commit comments

Comments
 (0)