@@ -119,14 +119,14 @@ test('successfully runs the action', async () => {
119
119
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'triggered' , 'true' )
120
120
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
121
121
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
122
- expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , ' false' )
122
+ expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , false )
123
123
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'continue' , 'true' )
124
124
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'isPost' , 'true' )
125
125
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'actionsToken' , 'faketoken' )
126
126
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'environment' , 'production' )
127
127
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
128
128
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
129
- expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , ' false' )
129
+ expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , false )
130
130
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'type' , 'deploy' )
131
131
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'deployment_id' , 123 )
132
132
expect ( debugMock ) . toHaveBeenCalledWith ( 'production_environment: true' )
@@ -144,14 +144,14 @@ test('successfully runs the action on a deployment to development', async () =>
144
144
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'triggered' , 'true' )
145
145
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
146
146
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
147
- expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , ' false' )
147
+ expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , false )
148
148
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'continue' , 'true' )
149
149
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'isPost' , 'true' )
150
150
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'actionsToken' , 'faketoken' )
151
151
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'environment' , 'development' )
152
152
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
153
153
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
154
- expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , ' false' )
154
+ expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , false )
155
155
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'type' , 'deploy' )
156
156
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'deployment_id' , 123 )
157
157
expect ( debugMock ) . toHaveBeenCalledWith ( 'production_environment: false' )
@@ -174,15 +174,15 @@ test('successfully runs the action in noop mode', async () => {
174
174
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'triggered' , 'true' )
175
175
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
176
176
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
177
- expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , ' true' )
177
+ expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , true )
178
178
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'continue' , 'true' )
179
179
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'type' , 'deploy' )
180
180
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'isPost' , 'true' )
181
181
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'actionsToken' , 'faketoken' )
182
182
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'environment' , 'production' )
183
183
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
184
184
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
185
- expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , ' true' )
185
+ expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , true )
186
186
} )
187
187
188
188
test ( 'runs the action in lock mode and fails due to bad permissions' , async ( ) => {
@@ -568,15 +568,15 @@ test('successfully runs the action with required contexts', async () => {
568
568
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'triggered' , 'true' )
569
569
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
570
570
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
571
- expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , ' false' )
571
+ expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , false )
572
572
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'continue' , 'true' )
573
573
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'type' , 'deploy' )
574
574
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'isPost' , 'true' )
575
575
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'actionsToken' , 'faketoken' )
576
576
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'environment' , 'production' )
577
577
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
578
578
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
579
- expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , ' false' )
579
+ expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , false )
580
580
} )
581
581
582
582
test ( 'detects an out of date branch and exits' , async ( ) => {
@@ -607,14 +607,14 @@ test('detects an out of date branch and exits', async () => {
607
607
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'triggered' , 'true' )
608
608
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
609
609
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
610
- expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , ' false' )
610
+ expect ( setOutputMock ) . toHaveBeenCalledWith ( 'noop' , false )
611
611
expect ( setOutputMock ) . toHaveBeenCalledWith ( 'type' , 'deploy' )
612
612
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'isPost' , 'true' )
613
613
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'actionsToken' , 'faketoken' )
614
614
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'environment' , 'production' )
615
615
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'comment_id' , 123 )
616
616
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'ref' , 'test-ref' )
617
- expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , ' false' )
617
+ expect ( saveStateMock ) . toHaveBeenCalledWith ( 'noop' , false )
618
618
expect ( saveStateMock ) . toHaveBeenCalledWith ( 'bypass' , 'true' )
619
619
} )
620
620
0 commit comments