1
1
name : Node Agent CI
2
2
3
- on : [push, pull_request, workflow_dispatch]
3
+ on :
4
+ push :
5
+ pull_request :
6
+ workflow_dispatch :
4
7
5
8
env :
6
9
# Enable versioned runner quiet mode to make CI output easier to read:
40
43
lint :
41
44
needs :
42
45
- should_run
43
- if : needs.should_run.outputs.javascript_changed == 'true' ||
44
- needs.should_run.outputs.deps_changed == 'true'
46
+ if : github.event_name == 'workflow_dispatch' ||
47
+ (needs.should_run.outputs.javascript_changed == 'true' ||
48
+ needs.should_run.outputs.deps_changed == 'true')
45
49
runs-on : ubuntu-latest
46
50
47
51
strategy :
62
66
ci :
63
67
needs :
64
68
- should_run
65
- if : needs.should_run.outputs.javascript_changed == 'true' ||
66
- needs.should_run.outputs.deps_changed == 'true'
69
+ if : github.event_name == 'workflow_dispatch' ||
70
+ (needs.should_run.outputs.javascript_changed == 'true' ||
71
+ needs.should_run.outputs.deps_changed == 'true')
67
72
runs-on : ubuntu-latest
68
73
69
74
strategy :
85
90
unit :
86
91
needs :
87
92
- should_run
88
- if : needs.should_run.outputs.javascript_changed == 'true' ||
89
- needs.should_run.outputs.deps_changed == 'true'
93
+ if : github.event_name == 'workflow_dispatch' ||
94
+ (needs.should_run.outputs.javascript_changed == 'true' ||
95
+ needs.should_run.outputs.deps_changed == 'true')
90
96
runs-on : ubuntu-latest
91
97
92
98
strategy :
@@ -113,8 +119,9 @@ jobs:
113
119
integration :
114
120
needs :
115
121
- should_run
116
- if : needs.should_run.outputs.javascript_changed == 'true' ||
117
- needs.should_run.outputs.deps_changed == 'true'
122
+ if : github.event_name == 'workflow_dispatch' ||
123
+ (needs.should_run.outputs.javascript_changed == 'true' ||
124
+ needs.should_run.outputs.deps_changed == 'true')
118
125
runs-on : ubuntu-latest
119
126
120
127
env :
@@ -153,8 +160,9 @@ jobs:
153
160
versioned-internal :
154
161
needs :
155
162
- should_run
156
- if : needs.should_run.outputs.javascript_changed == 'true' ||
157
- needs.should_run.outputs.deps_changed == 'true'
163
+ if : github.event_name == 'workflow_dispatch' ||
164
+ (needs.should_run.outputs.javascript_changed == 'true' ||
165
+ needs.should_run.outputs.deps_changed == 'true')
158
166
runs-on : ${{ github.ref == 'refs/heads/main' && vars.NR_RUNNER || 'ubuntu-latest' }}
159
167
160
168
strategy :
@@ -203,8 +211,9 @@ jobs:
203
211
versioned-external :
204
212
needs :
205
213
- should_run
206
- if : needs.should_run.outputs.javascript_changed == 'true' ||
207
- needs.should_run.outputs.deps_changed == 'true'
214
+ if : github.event_name == 'workflow_dispatch' ||
215
+ (needs.should_run.outputs.javascript_changed == 'true' ||
216
+ needs.should_run.outputs.deps_changed == 'true')
208
217
runs-on : ${{ github.ref == 'refs/heads/main' && vars.NR_RUNNER || 'ubuntu-latest' }}
209
218
210
219
strategy :
0 commit comments