55 branches :
66 - main
77 - ' [0-9]+.[0-9]+.x'
8- pull_request :
9- types : [opened, synchronize, reopened]
108
119concurrency :
1210 group : ${{ github.workflow }}-${{ github.ref }}
2321 runs-on : ubuntu-latest
2422 steps :
2523 - name : Initialize environment
26- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@8b117748ae8243f98d261a9731908867b8e3d876
24+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
2725 with :
2826 cache-node-modules : true
29- node-module-directories : |
30- ./node_modules
31- ./aio/node_modules
3227 - name : Install node modules
3328 run : yarn install --frozen-lockfile
3429 - name : Install node modules in aio
@@ -43,28 +38,18 @@ jobs:
4338 run : yarn -s ng-dev ngbot verify
4439 - name : Confirm code builds with typescript as expected
4540 run : yarn -s check-tooling-setup
46- - name : Check commit message
47- # Commit message validation is only done on pull requests as its too late to validate once
48- # it has been merged.
49- if : github.event_name == 'pull_request'
50- run : yarn ng-dev commit-message validate-range ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
51- - name : Check code format
52- # Code formatting checks are only done on pull requests as its too late to validate once
53- # it has been merged.
54- if : github.event_name == 'pull_request'
55- run : yarn ng-dev format changed --check ${{ github.event.pull_request.base.sha }}
5641
5742 devtools :
5843 runs-on : ubuntu-latest
5944 steps :
6045 - name : Initialize environment
61- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@8b117748ae8243f98d261a9731908867b8e3d876
46+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
6247 with :
6348 cache-node-modules : true
6449 - name : Setup Bazel
65- uses : angular/dev-infra/github-actions/bazel/setup@8b117748ae8243f98d261a9731908867b8e3d876
50+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
6651 - name : Setup Bazel RBE
67- uses : angular/dev-infra/github-actions/bazel/configure-remote@8b117748ae8243f98d261a9731908867b8e3d876
52+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
6853 - name : Install node modules
6954 run : yarn install --frozen-lockfile
7055 - name : Run unit tests
@@ -76,13 +61,13 @@ jobs:
7661 runs-on : ubuntu-latest-4core
7762 steps :
7863 - name : Initialize environment
79- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@8b117748ae8243f98d261a9731908867b8e3d876
64+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
8065 with :
8166 cache-node-modules : true
8267 - name : Setup Bazel
83- uses : angular/dev-infra/github-actions/bazel/setup@8b117748ae8243f98d261a9731908867b8e3d876
68+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
8469 - name : Setup Bazel Remote Caching
85- uses : angular/dev-infra/github-actions/bazel/configure-remote@8b117748ae8243f98d261a9731908867b8e3d876
70+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
8671 - name : Install node modules
8772 run : yarn install --frozen-lockfile --network-timeout 100000
8873 - name : Run CI tests for framework
@@ -93,11 +78,11 @@ jobs:
9378 labels : ubuntu-latest-4core
9479 steps :
9580 - name : Initialize environment
96- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@8b117748ae8243f98d261a9731908867b8e3d876
81+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
9782 - name : Setup Bazel
98- uses : angular/dev-infra/github-actions/bazel/setup@8b117748ae8243f98d261a9731908867b8e3d876
83+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
9984 - name : Setup Bazel RBE
100- uses : angular/dev-infra/github-actions/bazel/configure-remote@8b117748ae8243f98d261a9731908867b8e3d876
85+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
10186 - name : Install node modules
10287 run : yarn install --frozen-lockfile
10388 - name : Build adev in fast mode to ensure it continues to work
@@ -106,18 +91,17 @@ jobs:
10691 run : yarn bazel test //adev:test
10792
10893 publish-snapshots :
109- if : github.event_name == 'push'
11094 runs-on :
11195 labels : ubuntu-latest
11296 steps :
11397 - name : Initialize environment
114- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@8b117748ae8243f98d261a9731908867b8e3d876
98+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
11599 with :
116100 cache-node-modules : true
117101 - name : Setup Bazel
118- uses : angular/dev-infra/github-actions/bazel/setup@8b117748ae8243f98d261a9731908867b8e3d876
102+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
119103 - name : Setup Bazel RBE
120- uses : angular/dev-infra/github-actions/bazel/configure-remote@8b117748ae8243f98d261a9731908867b8e3d876
104+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
121105 - name : Install node modules
122106 run : yarn install --frozen-lockfile
123107 - run : echo "https://${{secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN}}:@github.com" > ${HOME}/.git_credentials
@@ -129,17 +113,17 @@ jobs:
129113 labels : ubuntu-latest-4core
130114 steps :
131115 - name : Initialize environment
132- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@8b117748ae8243f98d261a9731908867b8e3d876
116+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
133117 with :
134118 cache-node-modules : true
135119 node-module-directories : |
136120 ./node_modules
137121 ./packages/zone.js/node_modules
138122 ./packages/zone.js/test/typings/node_modules
139123 - name : Setup Bazel
140- uses : angular/dev-infra/github-actions/bazel/setup@8b117748ae8243f98d261a9731908867b8e3d876
124+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
141125 - name : Setup Bazel RBE
142- uses : angular/dev-infra/github-actions/bazel/configure-remote@8b117748ae8243f98d261a9731908867b8e3d876
126+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
143127 - name : Install node modules
144128 run : yarn install --frozen-lockfile
145129 - run : |
@@ -171,26 +155,22 @@ jobs:
171155 - run : yarn --cwd packages/zone.js/test/typings test
172156
173157 bazel-saucelabs :
174- # TODO: Replace legacy job with Bazel saucelabs job.
175- if : github.event_name == 'push'
176158 runs-on : ubuntu-latest-4core
177159 env :
178160 JOBS : 2
179161 steps :
180162 - name : Initialize environment
181- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@8b117748ae8243f98d261a9731908867b8e3d876
163+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
182164 with :
183165 cache-node-modules : true
184- # Checking out the pull request commit is intended here as we need to run the changed code tests.
185- ref : ${{ github.event.pull_request.head.sha }}
186166 - name : Install node modules
187167 run : yarn install --frozen-lockfile
188168 - name : Setup Bazel
189- uses : angular/dev-infra/github-actions/bazel/setup@8b117748ae8243f98d261a9731908867b8e3d876
169+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
190170 - name : Setup Bazel Remote Caching
191- uses : angular/dev-infra/github-actions/bazel/configure-remote@8b117748ae8243f98d261a9731908867b8e3d876
171+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
192172 - name : Setup Saucelabs Variables
193- uses : angular/dev-infra/github-actions/saucelabs@8b117748ae8243f98d261a9731908867b8e3d876
173+ uses : angular/dev-infra/github-actions/saucelabs@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
194174 - name : Set up Sauce Tunnel Daemon
195175 run : yarn bazel run //tools/saucelabs-daemon/background-service -- $JOBS &
196176 env :
@@ -200,63 +180,17 @@ jobs:
200180 TESTS=$(./node_modules/.bin/bazelisk query --output label '(kind(karma_web_test, ...) intersect attr("tags", "saucelabs", ...)) except attr("tags", "fixme-saucelabs", ...)')
201181 yarn bazel test --config=saucelabs --jobs=$JOBS ${TESTS}
202182
203- saucelabs :
204- runs-on : ubuntu-latest-4core
205- env :
206- SAUCE_TUNNEL_IDENTIFIER : angular-framework-${{ github.run_number }}
207- steps :
208- - name : Initialize environment
209- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@8b117748ae8243f98d261a9731908867b8e3d876
210- with :
211- cache-node-modules : true
212- - name : Install node modules
213- run : yarn install --frozen-lockfile
214- - name : Setup Bazel
215- uses : angular/dev-infra/github-actions/bazel/setup@8b117748ae8243f98d261a9731908867b8e3d876
216- - name : Setup Saucelabs Variables
217- uses : angular/dev-infra/github-actions/saucelabs@8b117748ae8243f98d261a9731908867b8e3d876
218- - name : Starting Saucelabs tunnel service
219- run : ./tools/saucelabs/sauce-service.sh run &
220- # Build test fixtures for a test that rely on Bazel-generated fixtures. Note that disabling
221- # specific tests which are reliant on such generated fixtures is not an option as SystemJS
222- # in the Saucelabs legacy job always fetches referenced files, even if the imports would be
223- # guarded by an check to skip in the Saucelabs legacy job. We should be good running such
224- # test in all supported browsers on Saucelabs anyway until this job can be removed.
225- - name : Preparing Bazel-generated fixtures required in legacy tests
226- run : |
227- yarn bazel build //packages/core/test:downleveled_es5_fixture //packages/common/locales
228- # Needed for the ES5 downlevel reflector test in `packages/core/test/reflection`.
229- mkdir -p dist/legacy-test-out/core/test/reflection/
230- cp dist/bin/packages/core/test/reflection/es5_downleveled_inheritance_fixture.js \
231- dist/legacy-test-out/core/test/reflection/es5_downleveled_inheritance_fixture.js
232- # Locale files are needed for i18n tests running within Saucelabs. These are added
233- # directly as sources so that the TypeScript compilation of `/packages/tsconfig.json`
234- # can succeed. Note that the base locale and currencies files are checked-in, so
235- # we do not need to re-generate those through Bazel.
236- mkdir -p packages/common/locales/extra
237- cp dist/bin/packages/common/locales/*.ts packages/common/locales
238- cp dist/bin/packages/common/locales/extra/*.ts packages/common/locales/extra
239- - name : Build bundle of tests to run on Saucelabs
240- run : node tools/legacy-saucelabs/build-saucelabs-test-bundle.mjs
241- - name : Wait and confirm Saucelabs tunnel has connected
242- run : ./tools/saucelabs/sauce-service.sh ready-wait
243- timeout-minutes : 3
244- - name : Running tests on Saucelabs.
245- run : KARMA_WEB_TEST_MODE=SL_REQUIRED yarn karma start ./karma-js.conf.js --single-run
246- - name : Stop Saucelabs tunnel service
247- run : ./tools/saucelabs/sauce-service.sh stop
248-
249183 adev-deploy :
250184 needs : [adev]
251- if : needs.adev.result == 'success' && github.event_name == 'push'
185+ if : needs.adev.result == 'success'
252186 runs-on : ubuntu-latest
253187 steps :
254188 - name : Initialize environment
255- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@8b117748ae8243f98d261a9731908867b8e3d876
189+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
256190 - name : Setup Bazel
257- uses : angular/dev-infra/github-actions/bazel/setup@8b117748ae8243f98d261a9731908867b8e3d876
191+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
258192 - name : Setup Bazel RBE
259- uses : angular/dev-infra/github-actions/bazel/configure-remote@8b117748ae8243f98d261a9731908867b8e3d876
193+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
260194 - name : Install node modules
261195 run : yarn install --frozen-lockfile
262196 - name : Build adev to ensure it continues to work
0 commit comments