forked from stacks-network/stacks-core
-
Notifications
You must be signed in to change notification settings - Fork 0
132 lines (121 loc) · 3.19 KB
/
standalone-tests.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
## Github workflow to run specified tests on demand
name: Standalone Tests
on:
workflow_call:
inputs:
workflow:
description: "Tests to run (required)"
required: true
type: string
workflow_dispatch:
inputs:
workflow:
description: "Tests to run (required)"
required: true
type: choice
options:
- Release Tests
- CI Tests
- Atlas Tests
- Bitcoin Tests
- Epoch Tests
- Slow Tests
- Stacks-Core Tests
- SBTC Tests
## Set the display name to the test being run
run-name: ${{ inputs.workflow }}
jobs:
## Runs every time to either create the required caches or confirm they already exist
create-cache:
name: Create Test Cache
uses: ./.github/workflows/create-cache.yml
#####################################################
## Runs when:
## either or of the following:
## - workflow is 'Release Tests'
## - workflow is 'CI Tests'
## - workflow is 'Stacks-Core Tests'
stacks-core-tests:
if: |
(
inputs.workflow == 'Release Tests' ||
inputs.workflow == 'CI Tests' ||
inputs.workflow == 'Stacks-Core Tests'
)
name: Stacks Core Tests
needs:
- create-cache
uses: ./.github/workflows/stacks-core-tests.yml
## Runs when:
## either or of the following:
## - workflow is 'Release Tests'
## - workflow is 'CI Tests'
## - workflow is 'Bitcoin Tests'
bitcoin-tests:
if: |
(
inputs.workflow == 'Release Tests' ||
inputs.workflow == 'CI Tests' ||
inputs.workflow == 'Bitcoin Tests'
)
name: Bitcoin Tests
needs:
- create-cache
uses: ./.github/workflows/bitcoin-tests.yml
#####################################################
## Runs when:
## either or of the following:
## - workflow is 'Release Tests'
## - workflow is 'Atlas Tests'
atlas-tests:
if: |
(
inputs.workflow == 'Release Tests' ||
inputs.workflow == 'Atlas Tests'
)
name: Atlas Tests
needs:
- create-cache
uses: ./.github/workflows/atlas-tests.yml
## Runs when:
## either or of the following:
## - workflow is 'Release Tests'
## - workflow is 'Epoch Tests'
epoch-tests:
if: |
(
inputs.workflow == 'Release Tests' ||
inputs.workflow == 'Epoch Tests'
)
name: Epoch Tests
needs:
- create-cache
uses: ./.github/workflows/epoch-tests.yml
## Runs when:
## either or of the following:
## - workflow is 'Release Tests'
## - workflow is 'Slow Tests'
slow-tests:
if: |
(
inputs.workflow == 'Release Tests' ||
inputs.workflow == 'Slow Tests'
)
name: Slow Tests
needs:
- create-cache
uses: ./.github/workflows/slow-tests.yml
## Runs when:
## either or of the following:
## - workflow is 'Release Tests'
## - workflow is 'SBTC Tests'
sbtc-tests:
if: |
(
inputs.workflow == 'Release Tests' ||
inputs.workflow == 'SBTC Tests'
)
name: SBTC Tests
needs:
- create-cache
uses: ./.github/workflows/sbtc-tests.yml