blob: fa726a115d9fd1dd8d1df14d15c48f8abe48378f (
plain) (
blame)
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
80
|
name: Build-and-Test-Provisioned
on:
workflow_call:
inputs:
runner_label:
required: true
type: string
run_build:
type: boolean
default: true
sanitizer:
required: false
type: string
run_unit_tests:
type: boolean
default: true
run_functional_tests:
type: boolean
default: false
test_label_regexp:
required: false
type: string
workflow_dispatch:
inputs:
runner_label:
required: true
type: string
run_build:
type: boolean
default: true
sanitizer:
required: false
type: string
run_unit_tests:
type: boolean
default: true
run_functional_tests:
type: boolean
default: true
test_label_regexp:
required: false
type: string
jobs:
main:
name: Build and test
runs-on: [ self-hosted, Provisioned, "${{ inputs.runner_label }}" ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: ./.github/actions/build
if: inputs.run_build
with:
sanitizer: ${{ inputs.sanitizer }}
- name: Run unit tests
uses: ./.github/actions/test
if: inputs.run_unit_tests
with:
log_suffix: ${{format('{0}{1}', inputs.runner_label, inputs.sanitizer)}}
test_label_regexp: ${{ inputs.test_label_regexp }}
aws_key_id: ${{secrets.AWS_KEY_ID}}
aws_key_value: ${{secrets.AWS_KEY_VALUE}}
aws_bucket: ${{vars.AWS_BUCKET}}
aws_endpoint: ${{vars.AWS_ENDPOINT}}
testman_token: ${{secrets.TESTMO_TOKEN}}
testman_url: ${{vars.TESTMO_URL}}
testman_project_id: ${{vars.TESTMO_PROJECT_ID}}
- name: Run functional tests
if: inputs.run_functional_tests && (success() || failure()) && steps.build.conclusion != 'failure'
uses: ./.github/actions/test_python
with:
log_suffix: ${{format('{0}{1}', inputs.runner_label, inputs.sanitizer)}}
test_label_regexp: ${{ inputs.test_label_regexp }}
aws_key_id: ${{secrets.AWS_KEY_ID}}
aws_key_value: ${{secrets.AWS_KEY_VALUE}}
aws_bucket: ${{vars.AWS_BUCKET}}
aws_endpoint: ${{vars.AWS_ENDPOINT}}
|