Repository navigation
79 lines (77 loc) · 2.35 KB
/
Copy pathtests-cm.yml
File metadata and controls
79 lines (77 loc) · 2.35 KB
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
name: Test CM-widget
run-name: CM-widget Tests. Env [${{ github.event.schedule == '0 5 * * *' && 'prod' || inputs.stand_type || 'testnet' }}]
on:
schedule:
- cron: "0 5 * * *" # Every day at 5 AM UTC: prod + smoke
- cron: "0 6 * * *" # Every day at 6 AM UTC: testnet + "-"
workflow_dispatch:
inputs:
stand_type:
description: "Stand type"
required: true
type: choice
default: testnet
options:
- testnet
- preview
- prod
- staging
tags:
description: "Tags for running test suite"
required: false
type: choice
default: "-"
options:
- "-"
- smoke
preview_stand_url:
description: 'Preview stand url (only if "Stand type" is "preview")'
required: false
type: string
preview_stand_env:
description: 'Preview stand env (only if "Stand type" is "preview")'
required: false
type: choice
default: testnet
options:
- testnet
- infra
workflow_call:
inputs:
preview_stand_url:
required: false
type: string
description: Stand url
stand_type:
description: "Stand type"
required: true
type: string
tags:
required: false
type: string
default: "-"
description: "Test tags"
report_enabled:
description: "Enable slack report."
required: false
type: boolean
default: false
job_custom_name:
description: "Human-readable name of the calling job, used as the Slack report title."
required: false
type: string
default: ""
jobs:
test:
name: CM widget
uses: ./.github/workflows/e2e-tests.yml
secrets: inherit
with:
module: cm
stand_type: ${{ github.event.schedule == '0 5 * * *' && 'prod' || inputs.stand_type || 'testnet' }}
test_tags: ${{ github.event.schedule == '0 5 * * *' && 'smoke' || inputs.tags || '-' }}
qase_project_id: CM
preview_stand_url: ${{ inputs.preview_stand_url || github.event.inputs.preview_stand_url || '' }}
preview_stand_env: ${{ github.event.inputs.preview_stand_env || '' }}
report_enabled: ${{ inputs.report_enabled || false }}
job_custom_name: ${{ inputs.job_custom_name || 'CM widget' }}