@@ -13,6 +13,7 @@ const env = {
13
13
GITHUB_REPOSITORY : "owner/repo" ,
14
14
GITHUB_WORKSPACE : "/workspace" ,
15
15
GITHUB_RUN_ID : "1246789" ,
16
+ GITHUB_SERVER_URL : "https://github.com" ,
16
17
} ;
17
18
18
19
test ( "Push" , ( t ) => {
@@ -21,6 +22,7 @@ test("Push", (t) => {
21
22
service : "github" ,
22
23
commit : "1234" ,
23
24
build : "1246789" ,
25
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
24
26
branch : "master" ,
25
27
isPr : false ,
26
28
prBranch : undefined ,
@@ -35,6 +37,7 @@ test("Push - with short branch name", (t) => {
35
37
service : "github" ,
36
38
commit : "1234" ,
37
39
build : "1246789" ,
40
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
38
41
branch : "master" ,
39
42
isPr : false ,
40
43
prBranch : undefined ,
@@ -64,6 +67,7 @@ test("PR - with event.json file", (t) => {
64
67
service : "github" ,
65
68
commit : "1234" ,
66
69
build : "1246789" ,
70
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
67
71
branch : "master" ,
68
72
isPr : true ,
69
73
prBranch : "refs/pull/10/merge" ,
@@ -95,6 +99,7 @@ test("PR - target", (t) => {
95
99
service : "github" ,
96
100
commit : "1234" ,
97
101
build : "1246789" ,
102
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
98
103
branch : "master" ,
99
104
isPr : true ,
100
105
prBranch : "refs/pull/10/merge" ,
@@ -124,6 +129,7 @@ test("PR - with event.json file and short branch name", (t) => {
124
129
service : "github" ,
125
130
commit : "1234" ,
126
131
build : "1246789" ,
132
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
127
133
branch : "master" ,
128
134
isPr : true ,
129
135
prBranch : "refs/pull/10/merge" ,
@@ -149,6 +155,7 @@ test("PR - with missing event.json file", (t) => {
149
155
service : "github" ,
150
156
commit : "1234" ,
151
157
build : "1246789" ,
158
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
152
159
branch : undefined ,
153
160
isPr : true ,
154
161
prBranch : "refs/pull/10/merge" ,
@@ -173,6 +180,7 @@ test("PR - with missing event.json file path", (t) => {
173
180
service : "github" ,
174
181
commit : "1234" ,
175
182
build : "1246789" ,
183
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
176
184
branch : undefined ,
177
185
isPr : true ,
178
186
prBranch : "refs/pull/10/merge" ,
@@ -202,6 +210,7 @@ test('PR - with missing "pull_request" in event.json file', (t) => {
202
210
service : "github" ,
203
211
commit : "1234" ,
204
212
build : "1246789" ,
213
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
205
214
branch : undefined ,
206
215
isPr : true ,
207
216
prBranch : "refs/pull/10/merge" ,
@@ -231,6 +240,7 @@ test('PR - with missing "pull_request.base" in event.json file', (t) => {
231
240
service : "github" ,
232
241
commit : "1234" ,
233
242
build : "1246789" ,
243
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
234
244
branch : undefined ,
235
245
isPr : true ,
236
246
prBranch : "refs/pull/10/merge" ,
@@ -247,6 +257,7 @@ test("Push - with incorrect branch name", (t) => {
247
257
service : "github" ,
248
258
commit : "1234" ,
249
259
build : "1246789" ,
260
+ buildUrl : "https://github.com/owner/repo/actions/runs/1246789" ,
250
261
branch : undefined ,
251
262
isPr : false ,
252
263
prBranch : undefined ,
0 commit comments