-
Notifications
You must be signed in to change notification settings - Fork 22
70 lines (64 loc) · 2.58 KB
/
cucumber-integration-test-INT-association.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
name: IRS Association INT Cucumber Integration test execution
on:
workflow_dispatch: # Trigger manually
inputs:
executionFilter:
description: 'Execution filter'
required: false
default: '!Ignore& !INACTIVE & IRS & INT'
exportFilter:
description: 'Jira export filter'
required: false
default: '10001'
# Cancel previous Test executions if a new one is triggered.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-config:
runs-on: ubuntu-latest
steps:
- name: Check if INT_REGULAR_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.INT_REGULAR_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure INT_REGULAR_USER_API_KEY."
exit 1
fi
- name: Check if INT_ADMIN_USER_API_KEY is defined
run: |
if [[ -z "${{ secrets.INT_ADMIN_USER_API_KEY }}" ]]; then
echo "Error: Missing secret: Please configure INT_ADMIN_USER_API_KEY."
exit 1
fi
- name: Check if IRS_CUCUMBER_PUBLISH_TOKEN is defined
run: |
if [[ -z "${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }}" ]]; then
echo "Error: Missing secret: Please configure IRS_CUCUMBER_PUBLISH_TOKEN."
exit 1
fi
shell: bash
- name: Check if is defined IRS_XRAY_JIRA_USER is defined
run: |
if [[ -z "${{ secrets.IRS_XRAY_JIRA_USER }}" ]]; then
echo "Error: Missing secret: Please configure IRS_XRAY_JIRA_USER."
exit 1
fi
- name: Check if is defined IRS_XRAY_JIRA_SECRET is defined
run: |
if [[ -z "${{ secrets.IRS_XRAY_JIRA_SECRET }}" ]]; then
echo "Error: Missing secret: Please configure IRS_XRAY_JIRA_SECRET."
exit 1
fi
trigger-integration-test:
needs: check-config
uses: ./.github/workflows/cucumber-integration-test-xray.yaml
secrets:
regularUserApiKey: ${{ secrets.INT_REGULAR_USER_API_KEY }}
adminUserApiKey: ${{ secrets.INT_ADMIN_USER_API_KEY }}
cucumberPublishToken: ${{ secrets.IRS_CUCUMBER_PUBLISH_TOKEN }}
jiraUser: ${{ secrets.IRS_XRAY_JIRA_USER }}
jiraPassword: ${{ secrets.IRS_XRAY_JIRA_SECRET }}
with:
executionFilter: ${{ github.event.inputs.executionFilter || '!Ignore& !INACTIVE & IRS & INT' }}
# JIRA filter 10001: project = CXTM AND labels = "INT" AND labels = "IRS" AND status = Ready AND testType = Cucumber
exportFilter: ${{ github.event.inputs.exportFilter || '10001' }}