This repository was archived by the owner on Oct 6, 2023. It is now read-only.
File tree 11 files changed +594
-0
lines changed
pkg/github.com/heetch/cue-schema/github
11 files changed +594
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Code generated by github.com/heetch/cue-schema/github/workflow/generate. DO NOT EDIT.
2
+ jobs :
3
+ test :
4
+ runs-on : ${{ matrix.platform }}
5
+ services :
6
+ kafka :
7
+ env :
8
+ KAFKA_ADVERTISED_LISTENERS : PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
9
+ KAFKA_BROKER_ID : " 1"
10
+ KAFKA_INTER_BROKER_LISTENER_NAME : PLAINTEXT
11
+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
12
+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR : " 1"
13
+ KAFKA_ZOOKEEPER_CONNECT : zookeeper:2181
14
+ image : confluentinc/cp-kafka:latest
15
+ steps :
16
+ - name : Install Go
17
+ uses : actions/setup-go@v1
18
+ with :
19
+ go-version : ${{ matrix.go-version }}
20
+ - name : Module cache
21
+ uses : actions/cache@v1
22
+ with :
23
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
24
+ path : ~/go/pkg/mod
25
+ restore-keys : ${{ runner.os }}-go-
26
+ - name : Checkout code
27
+ uses : actions/checkout@v1
28
+ - name : Test
29
+ run : go test ./...
30
+ strategy :
31
+ matrix :
32
+ go-version :
33
+ - 1.13.x
34
+ platform :
35
+ - ubuntu-latest
36
+ name : Test
37
+ " on " :
38
+ - push
39
+ - pull_request
Original file line number Diff line number Diff line change
1
+ module: " "
Original file line number Diff line number Diff line change
1
+ module: " github.com/heetch/cue-schema/github"
Original file line number Diff line number Diff line change
1
+ package generate
2
+
3
+ import (
4
+ " tool/file "
5
+ " encoding/yaml "
6
+ " github.com/heetch/cue-schema/github/workflow "
7
+ )
8
+
9
+ Workflow :: workflow
10
+
11
+ command : generateworkflow : {
12
+ task : write : file .Create & {
13
+ filename : " .github/workflows/test.yaml "
14
+ contents : """
15
+ # Code generated by github.com/heetch/cue-schema/github/workflow/generate. DO NOT EDIT.
16
+ \(yaml .Marshal (Workflow ) )
17
+ """
18
+ }
19
+ }
Original file line number Diff line number Diff line change
1
+ package workflow
2
+
3
+ Event ::
4
+ " check_run " |
5
+ " check_suite " |
6
+ " commit_comment " |
7
+ " create " |
8
+ " delete " |
9
+ " deployment " |
10
+ " deployment_status " |
11
+ " fork " |
12
+ " gollum " |
13
+ " issue_comment " |
14
+ " issues " |
15
+ " label " |
16
+ " member " |
17
+ " milestone " |
18
+ " page_build " |
19
+ " project " |
20
+ " project_card " |
21
+ " project_column " |
22
+ " public " |
23
+ " pull_request " |
24
+ " pull_request_review " |
25
+ " pull_request_review_comment " |
26
+ " push " |
27
+ " release " |
28
+ " repository_dispatch " |
29
+ " schedule " |
30
+ " status " |
31
+ " watch "
32
+
33
+ EventConfig :: {
34
+ check_run ?: null | {
35
+ type =
36
+ " created " |
37
+ " rerequested " |
38
+ " completed " |
39
+ " requested_action "
40
+ types ?: [ ... type ]
41
+ }
42
+ check_suite ?: null | {
43
+ type =
44
+ " assigned " |
45
+ " unassigned " |
46
+ " labeled " |
47
+ " unlabeled " |
48
+ " opened " |
49
+ " edited " |
50
+ " closed " |
51
+ " reopened " |
52
+ " synchronize " |
53
+ " ready_for_review " |
54
+ " locked " |
55
+ " unlocked " |
56
+ " review_requested " |
57
+ " review_request_removed "
58
+ types ?: [ ... type ]
59
+ }
60
+ commit_comment ?: null | {}
61
+ create ?: null | {}
62
+ delete ?: null | {}
63
+ deployment ?: null | {}
64
+ deployment_status ?: null | {}
65
+ fork ?: null | {}
66
+ gollum ?: null | {}
67
+ issue_comment ?: null | {
68
+ type =
69
+ " created " |
70
+ " edited " |
71
+ " deleted "
72
+ types ?: [ ... type ]
73
+ }
74
+ issues ?: null | {
75
+ type =
76
+ " opened " |
77
+ " edited " |
78
+ " deleted " |
79
+ " transferred " |
80
+ " pinned " |
81
+ " unpinned " |
82
+ " closed " |
83
+ " reopened " |
84
+ " assigned " |
85
+ " unassigned " |
86
+ " labeled " |
87
+ " unlabeled " |
88
+ " locked " |
89
+ " unlocked " |
90
+ " milestoned " |
91
+ " demilestoned "
92
+ types ?: [ ... type ]
93
+ }
94
+ label ?: null | {
95
+ type =
96
+ " created " |
97
+ " edited " |
98
+ " deleted "
99
+ types ?: [ ... type ]
100
+ }
101
+ member ?: null | {
102
+ type =
103
+ " added " |
104
+ " edited " |
105
+ " deleted "
106
+ types ?: [ ... type ]
107
+ }
108
+ milestone ?: null | {
109
+ type =
110
+ " created " |
111
+ " closed " |
112
+ " opened " |
113
+ " edited " |
114
+ " deleted "
115
+ types ?: [ ... type ]
116
+ }
117
+ page_build ?: null | {}
118
+ project ?: null | {
119
+ type =
120
+ " created " |
121
+ " closed " |
122
+ " opened " |
123
+ " edited " |
124
+ " deleted "
125
+ types ?: [ ... type ]
126
+ }
127
+ project_card ?: null | {
128
+ type =
129
+ " created " |
130
+ " moved " |
131
+ " converted " |
132
+ " edited " |
133
+ " deleted "
134
+ types ?: [ ... type ]
135
+ }
136
+ project_column ?: null | {
137
+ type =
138
+ " created " |
139
+ " updated " |
140
+ " moved " |
141
+ " deleted "
142
+ types ?: [ ... type ]
143
+ }
144
+ public ?: null | {}
145
+ pull_request ?: null | {
146
+ PushPullEvent
147
+ type =
148
+ " assigned " |
149
+ " unassigned " |
150
+ " labeled " |
151
+ " unlabeled " |
152
+ " opened " |
153
+ " edited " |
154
+ " closed " |
155
+ " reopened " |
156
+ " synchronize " |
157
+ " ready_for_review " |
158
+ " locked " |
159
+ " unlocked " |
160
+ " review_requested " |
161
+ " review_request_removed "
162
+ types ?: [ ... type ]
163
+ }
164
+ pull_request_review ?: null | {
165
+ type =
166
+ " submitted " |
167
+ " edited " |
168
+ " dismissed "
169
+ types ?: [ ... type ]
170
+ }
171
+ pull_request_review_comment ?: null | {
172
+ type =
173
+ " created " |
174
+ " edited " |
175
+ " deleted "
176
+ types ?: [ ... type ]
177
+ }
178
+ push ?: null | {
179
+ PushPullEvent
180
+ }
181
+ release ?: null | {
182
+ type =
183
+ " published " |
184
+ " unpublished " |
185
+ " created " |
186
+ " edited " |
187
+ " deleted " |
188
+ " prereleased "
189
+ types ? : [ ... type ]
190
+ }
191
+ repository_dispatch ?: null | {}
192
+ // schedule configures a workflow to run at specific UTC times using POSIX
193
+ // cron syntax. Scheduled workflows run on the latest commit on the
194
+ // default or base branch.
195
+ schedule ?: null | [{
196
+ // cron specifies the time schedule in cron syntax.
197
+ // See https://help.github.com/en/articles/events-that-trigger-workflows#scheduled-events
198
+ // TODO regexp for cron syntax
199
+ cron : string
200
+ }]
201
+ status ?: null | {}
202
+ watch ?: null | {
203
+ types ?: [ " started " ]
204
+ }
205
+ }
206
+
207
+ PushPullEvent :: {
208
+ branches ?: [... Glob ]
209
+ tags ?: [... Glob ]
210
+ " branches-ignore " ?: [... Glob ]
211
+ " tags-ignore " ?: [... Glob ]
212
+ paths ?: [... Glob ]
213
+ }
214
+
215
+ // Glob represents a wildcard pattern.
216
+ // See https://help.github.com/en/articles/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
217
+ Glob :: string
Original file line number Diff line number Diff line change
1
+ // Code generated by github.com/heetch/cue-schema/github/workflow/generate. DO NOT EDIT.
2
+ jobs :
3
+ test :
4
+ runs-on : ${{ matrix.platform }}
5
+ services :
6
+ kafka :
7
+ env :
8
+ KAFKA_ADVERTISED_LISTENERS : PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
9
+ KAFKA_BROKER_ID : " 1"
10
+ KAFKA_INTER_BROKER_LISTENER_NAME : PLAINTEXT
11
+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
12
+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR : " 1"
13
+ KAFKA_ZOOKEEPER_CONNECT : zookeeper:2181
14
+ image : confluentinc/cp-kafka:latest
15
+ postgres :
16
+ env :
17
+ POSTGRES_DB : postgres
18
+ POSTGRES_PASSWORD : postgres
19
+ POSTGRES_USER : postgres
20
+ image : postgres:10.8
21
+ options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s
22
+ --health-retries 5
23
+ ports :
24
+ - 5432:5432
25
+ steps :
26
+ - name : Install Go
27
+ uses : actions/setup-go@v1
28
+ with :
29
+ go-version : ${{ matrix.go-version }}
30
+ - name : Checkout code
31
+ uses : actions/checkout@v1
32
+ - name : Test
33
+ run : go test ./...
34
+ strategy :
35
+ matrix :
36
+ go-version :
37
+ - v1.12.x
38
+ - v1.13.x
39
+ platform :
40
+ - ubuntu-latest
41
+ name : My CI caboodle
42
+ " on " :
43
+ - push
44
+ - pull_request
Original file line number Diff line number Diff line change
1
+ jobs :
2
+ test :
3
+ runs-on : ${{ matrix.platform }}
4
+ services :
5
+ kafka :
6
+ env :
7
+ KAFKA_ADVERTISED_LISTENERS : PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
8
+ KAFKA_BROKER_ID : " 1"
9
+ KAFKA_INTER_BROKER_LISTENER_NAME : PLAINTEXT
10
+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
11
+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR : " 1"
12
+ KAFKA_ZOOKEEPER_CONNECT : zookeeper:2181
13
+ image : confluentinc/cp-kafka:latest
14
+ postgres :
15
+ env :
16
+ POSTGRES_DB : postgres
17
+ POSTGRES_PASSWORD : postgres
18
+ POSTGRES_USER : postgres
19
+ image : postgres:10.8
20
+ options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s
21
+ --health-retries 5
22
+ ports :
23
+ - 5432:5432
24
+ steps :
25
+ - name : Install Go
26
+ uses : actions/setup-go@v1
27
+ with :
28
+ go-version : ${{ matrix.go-version }}
29
+ - name : Checkout code
30
+ uses : actions/checkout@v1
31
+ - name : Test
32
+ run : go test ./...
33
+ strategy :
34
+ matrix :
35
+ go-version :
36
+ - go1.13.4
37
+ platform :
38
+ - ubuntu-latest
39
+ name : My CI caboodle
40
+ " on " :
41
+ - push
42
+ - pull_request
Original file line number Diff line number Diff line change
1
+ package go
2
+
3
+ import (
4
+ goworkflow " github.com/heetch/cue-schema/github/workflow/go :workflow "
5
+ )
6
+
7
+ Workflow :: goworkflow
8
+ Workflow :: {
9
+ name : " My CI caboodle "
10
+ Versions :: [" v1.12 " , " v1.13 " ]
11
+ Services :: [" postgres " , " kafka " ]
12
+ }
You can’t perform that action at this time.
0 commit comments