-
Notifications
You must be signed in to change notification settings - Fork 440
130 lines (121 loc) · 3.73 KB
/
unit-all.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
name: Unit Tests - PR
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- labeled
- reopened
jobs:
debugging:
runs-on: ubuntu-latest
steps:
- name: "Debug"
run: echo hi
all_unit_tests:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci/run-unit') || contains(github.event.pull_request.labels.*.name, 'ci/run-all') }}
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
matrix:
package:
[
cdktf,
cdktf-cli,
"@cdktf/hcl2cdk",
"@cdktf/hcl2json",
"@cdktf/provider-generator",
"@cdktf/commons",
"@cdktf/cli-core",
]
terraform_version: ["1.1.9", "1.2.8"]
with:
concurrency_group_prefix: pr-all
package: ${{ matrix.package }}
terraform_version: ${{ matrix.terraform_version }}
secrets: inherit
cdktf_api_core:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci/run-unit/@cdktf/api-core') }}
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
matrix:
terraform_version: ["1.2.8"]
with:
concurrency_group_prefix: pr-cdktf-api-core
package: "@cdktf/api-core"
terraform_version: ${{ matrix.terraform_version }}
secrets: inherit
cdktf_commons:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci/run-unit/@cdktf/commons') }}
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
matrix:
terraform_version: ["1.2.8"]
with:
concurrency_group_prefix: pr-cdktf-commons
package: "@cdktf/commons"
terraform_version: ${{ matrix.terraform_version }}
secrets: inherit
cdktf_hcl2cdk:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci/run-unit/@cdktf/hcl2cdk') }}
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
matrix:
terraform_version: ["1.2.8"]
with:
concurrency_group_prefix: pr-cdktf-hcl2cdk
package: "@cdktf/hcl2cdk"
terraform_version: ${{ matrix.terraform_version }}
secrets: inherit
cdktf_hcl2json:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci/run-unit/@cdktf/hcl2json') }}
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
matrix:
terraform_version: ["1.2.8"]
with:
concurrency_group_prefix: pr-cdktf-hcl2json
package: "@cdktf/hcl2json"
terraform_version: ${{ matrix.terraform_version }}
secrets: inherit
cdktf_provider_generator:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci/run-unit/@cdktf/provider-generator') }}
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
matrix:
terraform_version: ["1.2.8"]
with:
concurrency_group_prefix: pr-cdktf-provider-generator
package: "@cdktf/provider-generator"
terraform_version: ${{ matrix.terraform_version }}
secrets: inherit
cdktf_cli:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci/run-unit/cdktf-cli') }}
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
matrix:
terraform_version: ["1.2.8"]
with:
concurrency_group_prefix: pr-cdktf-cli
package: "cdktf-cli"
terraform_version: ${{ matrix.terraform_version }}
secrets: inherit
cdktf:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci/run-unit/cdktf') }}
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
matrix:
terraform_version: ["1.2.8"]
with:
concurrency_group_prefix: pr-cdktf
package: "cdktf"
terraform_version: ${{ matrix.terraform_version }}
secrets: inherit