5
5
branches :
6
6
- main
7
7
- ' [0-9]+.[0-9]+.x'
8
- pull_request :
9
- types : [opened, synchronize, reopened]
10
8
11
9
concurrency :
12
10
group : ${{ github.workflow }}-${{ github.ref }}
46
44
run : yarn tslint
47
45
- name : Check for circular dependencies
48
46
run : yarn -s ts-circular-deps:check
49
- - name : Check commit message
50
- # Commit message validation is only done on pull requests as its too late to validate once
51
- # it has been merged.
52
- if : github.event_name == 'pull_request'
53
- run : yarn ng-dev commit-message validate-range ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
54
- - name : Check code format
55
- # Code formatting checks are only done on pull requests as its too late to validate once
56
- # it has been merged.
57
- if : github.event_name == 'pull_request'
58
- run : yarn ng-dev format changed --check ${{ github.event.pull_request.base.sha }}
59
47
- uses : ./.github/actions/slack
60
- if : ${{ failure() && github.event_name == 'push' }}
48
+ if : failure()
61
49
with :
62
50
JOB_NAME : ' Lint check'
63
51
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
78
66
- name : Check API Goldens
79
67
run : yarn bazel test tools/public_api_guard/...
80
68
- uses : ./.github/actions/slack
81
- if : ${{ failure() && github.event_name == 'push' }}
69
+ if : failure()
82
70
with :
83
71
JOB_NAME : ' API Golden Checks'
84
72
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
99
87
- name : Run e2e tests
100
88
run : yarn e2e --flaky_test_attempts=2
101
89
- uses : ./.github/actions/slack
102
- if : ${{ failure() && github.event_name == 'push' }}
90
+ if : failure()
103
91
with :
104
92
JOB_NAME : ' E2E test'
105
93
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
@@ -123,7 +111,7 @@ jobs:
123
111
run : yarn integration-tests:size-test
124
112
continue-on-error : true
125
113
- uses : ./.github/actions/slack
126
- if : ${{ failure() && github.event_name == 'push' }}
114
+ if : failure()
127
115
with :
128
116
JOB_NAME : ' Integration test'
129
117
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
@@ -144,7 +132,7 @@ jobs:
144
132
- name : Run linker AOT tests
145
133
run : yarn test-linker-aot
146
134
- uses : ./.github/actions/slack
147
- if : ${{ failure() && github.event_name == 'push' }}
135
+ if : failure()
148
136
with :
149
137
JOB_NAME : ' Link AOT test'
150
138
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
@@ -165,7 +153,7 @@ jobs:
165
153
- name : Run linker JIT tests
166
154
run : yarn test-linker-jit
167
155
- uses : ./.github/actions/slack
168
- if : ${{ failure() && github.event_name == 'push' }}
156
+ if : failure()
169
157
with :
170
158
JOB_NAME : ' Link JIT test'
171
159
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
@@ -186,7 +174,7 @@ jobs:
186
174
- name : Run tests
187
175
run : bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
188
176
- uses : ./.github/actions/slack
189
- if : ${{ failure() && github.event_name == 'push' }}
177
+ if : failure()
190
178
with :
191
179
JOB_NAME : ' Test'
192
180
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
@@ -207,13 +195,12 @@ jobs:
207
195
- name : Run tests
208
196
run : bazel build --build_tag_filters=-docs-package,-release-package -- src/...
209
197
- uses : ./.github/actions/slack
210
- if : ${{ failure() && github.event_name == 'push' }}
198
+ if : failure()
211
199
with :
212
200
JOB_NAME : ' Build'
213
201
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
214
202
215
203
publish_snapshots :
216
- if : ${{ github.event_name == 'push'}}
217
204
runs-on : ubuntu-latest-4core
218
205
steps :
219
206
- name : Initialize environment
@@ -239,39 +226,12 @@ jobs:
239
226
env :
240
227
SNAPSHOT_BUILDS_GITHUB_TOKEN : ${{ secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN }}
241
228
- uses : ./.github/actions/slack
242
- if : ${{ failure() && github.event_name == 'push' }}
229
+ if : failure()
243
230
with :
244
231
JOB_NAME : ' Snapshot publishing'
245
232
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
246
233
247
- upload_package_artifacts :
248
- if : ${{ github.event_name != 'push'}}
249
- runs-on : ubuntu-latest-4core
250
- steps :
251
- - name : Initialize environment
252
- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@804107deac3621184db54fab3e7cfe7f735a0d74
253
- with :
254
- cache-node-modules : true
255
- - name : Setup Bazel
256
- uses : angular/dev-infra/github-actions/bazel/setup@804107deac3621184db54fab3e7cfe7f735a0d74
257
- - name : Setup Bazel RBE
258
- uses : angular/dev-infra/github-actions/bazel/configure-remote@804107deac3621184db54fab3e7cfe7f735a0d74
259
- - name : Install node modules
260
- run : yarn install --frozen-lockfile
261
- - name : Build and Verify Release Output
262
- run : yarn build-and-check-release-output
263
- - name : Verify tooling setup
264
- run : yarn check-tooling-setup
265
- - name : Build and create package artifacts
266
- run : ./scripts/create-package-archives.js --suffix "pr${{github.event.number}}-$(git rev-parse --short HEAD)"
267
- - name : Upload artifacts
268
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # tag=v4.3.1
269
- with :
270
- name : Package Artifacts
271
- path : dist/release-archives
272
-
273
234
deploy_doc_site :
274
- if : ${{ github.event_name == 'push'}}
275
235
runs-on : ubuntu-latest-4core
276
236
steps :
277
237
- name : Initialize environment
@@ -296,7 +256,7 @@ jobs:
296
256
DOCS_SITE_GCP_SERVICE_KEY : ${{ secrets.DOCS_SITE_GCP_SERVICE_KEY }}
297
257
DOCS_DEPLOY_GITHUB_TOKEN : ${{ secrets.DOCS_DEPLOY_GITHUB_TOKEN }}
298
258
- uses : ./.github/actions/slack
299
- if : ${{ failure() && github.event_name == 'push' }}
259
+ if : failure()
300
260
with :
301
261
JOB_NAME : ' Docs site deployment'
302
262
SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
@@ -313,8 +273,6 @@ jobs:
313
273
uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@804107deac3621184db54fab3e7cfe7f735a0d74
314
274
with :
315
275
cache-node-modules : true
316
- # Checking out the pull request commit is intended here as we need to run the changed code tests.
317
- ref : ${{ github.event.pull_request.head.sha }}
318
276
- name : Install node modules
319
277
run : yarn install --frozen-lockfile
320
278
- name : Setup Bazel
@@ -335,8 +293,6 @@ jobs:
335
293
uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@804107deac3621184db54fab3e7cfe7f735a0d74
336
294
with :
337
295
cache-node-modules : true
338
- # Checking out the pull request commit is intended here as we need to run the changed code tests.
339
- ref : ${{ github.event.pull_request.head.sha }}
340
296
- name : Install node modules
341
297
run : yarn install --frozen-lockfile
342
298
- name : Setup Bazel
0 commit comments