-
Notifications
You must be signed in to change notification settings - Fork 145
57 lines (52 loc) · 1.84 KB
/
vizro-qa-tests-trigger.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
57
name: Vizro QA tests trigger
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
PYTHONUNBUFFERED: 1
FORCE_COLOR: 1
jobs:
vizro-qa-test-trigger-fork:
if: ${{ github.event.pull_request.head.repo.fork }}
name: Vizro QA ${{ matrix.label }} trigger
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- label: integration tests
- label: vizro-ai ui tests
- label: component library tests
steps:
- name: Passed fork step
run: echo "Success!"
vizro-qa-tests-trigger:
if: ${{ ! github.event.pull_request.head.repo.fork }}
name: Vizro QA ${{ matrix.label }} trigger
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- label: integration tests
- label: vizro-ai ui tests
- label: component library tests
steps:
- uses: actions/checkout@v4
- name: Tests trigger
run: |
export INPUT_OWNER=mckinsey
export INPUT_REPO=vizro-qa
if [ "${{ matrix.label }}" == "integration tests" ]; then
export INPUT_WORKFLOW_FILE_NAME=${{ secrets.VIZRO_QA_INTEGRATION_TESTS_WORKFLOW }}
elif [ "${{ matrix.label }}" == "vizro-ai ui tests" ]; then
export INPUT_WORKFLOW_FILE_NAME=${{ secrets.VIZRO_QA_VIZRO_AI_UI_TESTS_WORKFLOW }}
elif [ "${{ matrix.label }}" == "component library tests" ]; then
export INPUT_WORKFLOW_FILE_NAME=${{ secrets.VIZRO_QA_VIZRO_COMPONENT_LIBRARY_TESTS_WORKFLOW }}
fi
export INPUT_GITHUB_TOKEN=${{ secrets.VIZRO_SVC_PAT }}
export INPUT_REF=main # because we should send existent branch to dispatch workflow
export INPUT_CLIENT_PAYLOAD='{"branch": "${{ github.head_ref }}"}'
tools/trigger-workflow-and-wait.sh