@@ -22,10 +22,10 @@ func TestPreActivationCustomSteps(t *testing.T) {
2222 t .Run ("custom_steps_imported" , func (t * testing.T ) {
2323 workflowContent := `---
2424on:
25- workflow_dispatch:
25+ workflow_dispatch: null
2626 stop-after: "+48h"
27+ roles: [admin, maintainer]
2728engine: claude
28- roles: [admin, maintainer]
2929jobs:
3030 pre-activation:
3131 steps:
@@ -74,10 +74,10 @@ Test workflow with custom pre-activation steps
7474 t .Run ("custom_outputs_imported" , func (t * testing.T ) {
7575 workflowContent := `---
7676on:
77- workflow_dispatch:
77+ workflow_dispatch: null
7878 stop-after: "+48h"
79+ roles: [admin, maintainer]
7980engine: claude
80- roles: [admin, maintainer]
8181jobs:
8282 pre-activation:
8383 outputs:
@@ -121,8 +121,8 @@ Test workflow with custom pre-activation outputs
121121on:
122122 workflow_dispatch:
123123 stop-after: "+48h"
124+ roles: [admin, maintainer]
124125engine: claude
125- roles: [admin, maintainer]
126126jobs:
127127 pre-activation:
128128 steps:
@@ -168,8 +168,8 @@ Test workflow with both custom steps and outputs
168168on:
169169 workflow_dispatch:
170170 stop-after: "+48h"
171+ roles: [admin, maintainer]
171172engine: claude
172- roles: [admin, maintainer]
173173jobs:
174174 pre-activation:
175175 runs-on: ubuntu-latest
@@ -201,8 +201,8 @@ Test workflow with unsupported field in pre-activation
201201on:
202202 workflow_dispatch:
203203 stop-after: "+48h"
204+ roles: [admin, maintainer]
204205engine: claude
205- roles: [admin, maintainer]
206206jobs:
207207 pre-activation:
208208 steps:
@@ -255,8 +255,8 @@ Test that pre-activation is not added as a custom job
255255on:
256256 workflow_dispatch:
257257 stop-after: "+48h"
258+ roles: [admin, maintainer]
258259engine: claude
259- roles: [admin, maintainer]
260260jobs:
261261 pre-activation:
262262 steps:
0 commit comments