99 # Developers can make one-off pushes to `ci-*` branches to manually trigger full CI
1010 # prior to opening a pull request.
1111 - ci-*
12- pull_request :
13- types : [opened, synchronize, reopened]
1412
1513concurrency :
1614 group : ${{ github.workflow }}-${{ github.ref }}
4240 runs-on : ubuntu-latest
4341 steps :
4442 - name : Initialize environment
45- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@128f3277d17e083606346fcb85f3cd934e5bbe60
46- - name : Setup ESLint Caching
47- uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
48- with :
49- path : .eslintcache
50- key : ${{ runner.os }}-${{ hashFiles('.eslintrc.json') }}
43+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
5144 - name : Install node modules
5245 run : yarn install --frozen-lockfile --ignore-scripts
5346 - name : Run ESLint
@@ -60,47 +53,30 @@ jobs:
6053 run : yarn -s admin validate
6154 - name : Check tooling setup
6255 run : yarn -s check-tooling-setup
63- - name : Check commit message
64- # Commit message validation is only done on pull requests as its too late to validate once
65- # it has been merged.
66- if : github.event_name == 'pull_request'
67- run : yarn ng-dev commit-message validate-range ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
68- - name : Check code format
69- # Code formatting checks are only done on pull requests as its too late to validate once
70- # it has been merged.
71- if : github.event_name == 'pull_request'
72- run : yarn ng-dev format changed --check ${{ github.event.pull_request.base.sha }}
7356
7457 build :
7558 runs-on : ubuntu-latest
7659 steps :
7760 - name : Initialize environment
78- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@128f3277d17e083606346fcb85f3cd934e5bbe60
61+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
7962 - name : Setup Bazel
80- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
63+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
8164 - name : Setup Bazel RBE
82- uses : angular/dev-infra/github-actions/bazel/configure-remote@128f3277d17e083606346fcb85f3cd934e5bbe60
65+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
8366 - name : Install node modules
8467 run : yarn install --frozen-lockfile
8568 - name : Build release targets
8669 run : yarn ng-dev release build
87- - name : Store PR release packages
88- if : github.event_name == 'pull_request'
89- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
90- with :
91- name : packages
92- path : dist/releases/*.tgz
93- retention-days : 14
9470
9571 test :
9672 runs-on : ubuntu-latest
9773 steps :
9874 - name : Initialize environment
99- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@128f3277d17e083606346fcb85f3cd934e5bbe60
75+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
10076 - name : Setup Bazel
101- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
77+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
10278 - name : Setup Bazel RBE
103- uses : angular/dev-infra/github-actions/bazel/configure-remote@128f3277d17e083606346fcb85f3cd934e5bbe60
79+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
10480 - name : Install node modules
10581 run : yarn install --frozen-lockfile
10682 - name : Run module tests
@@ -135,19 +111,19 @@ jobs:
135111 runs-on : ${{ matrix.os }}
136112 steps :
137113 - name : Initialize environment
138- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@128f3277d17e083606346fcb85f3cd934e5bbe60
114+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
139115 - name : Install node modules
140116 run : yarn install --frozen-lockfile
141117 - name : Setup Bazel
142- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
118+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
143119 - name : Setup Bazel RBE
144- uses : angular/dev-infra/github-actions/bazel/configure-remote@128f3277d17e083606346fcb85f3cd934e5bbe60
120+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
145121 - name : Run CLI E2E tests
146122 run : yarn bazel test --define=E2E_SHARD_TOTAL=6 --define=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}
147123
148124 e2e-snapshots :
149125 needs : analyze
150- if : needs.analyze.outputs.snapshots == 'true' || github.event_name == 'push'
126+ if : needs.analyze.outputs.snapshots == 'true'
151127 strategy :
152128 fail-fast : false
153129 matrix :
@@ -158,31 +134,30 @@ jobs:
158134 runs-on : ${{ matrix.os }}
159135 steps :
160136 - name : Initialize environment
161- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@128f3277d17e083606346fcb85f3cd934e5bbe60
137+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
162138 - name : Install node modules
163139 run : yarn install --frozen-lockfile
164140 - name : Setup Bazel
165- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
141+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
166142 - name : Setup Bazel RBE
167- uses : angular/dev-infra/github-actions/bazel/configure-remote@128f3277d17e083606346fcb85f3cd934e5bbe60
143+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
168144 - name : Run CLI E2E tests
169145 run : yarn bazel test --define=E2E_SHARD_TOTAL=6 --define=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.snapshots.${{ matrix.subset }}_node${{ matrix.node }}
170146
171147 browsers :
172- if : github.event_name == 'push'
173148 runs-on : ubuntu-latest
174149 name : Browser Compatibility Tests
175150 env :
176151 SAUCE_TUNNEL_IDENTIFIER : angular-cli-${{ github.workflow }}-${{ github.run_number }}
177152 steps :
178153 - name : Initialize environment
179- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@128f3277d17e083606346fcb85f3cd934e5bbe60
154+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
180155 - name : Install node modules
181156 run : yarn install --frozen-lockfile
182157 - name : Setup Bazel
183- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
158+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
184159 - name : Setup Bazel RBE
185- uses : angular/dev-infra/github-actions/bazel/configure-remote@128f3277d17e083606346fcb85f3cd934e5bbe60
160+ uses : angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
186161 - name : Run E2E Browser tests
187162 env :
188163 SAUCE_USERNAME : ${{ vars.SAUCE_USERNAME }}
@@ -204,17 +179,16 @@ jobs:
204179 path : ${{ env.SAUCE_CONNECT_DIR_IN_HOST }}/sauce-connect.log
205180
206181 publish-snapshots :
207- if : github.event_name == 'push'
208182 runs-on : ubuntu-latest
209183 env :
210184 CIRCLE_BRANCH : ${{ github.ref_name }}
211185 steps :
212186 - name : Initialize environment
213- uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@128f3277d17e083606346fcb85f3cd934e5bbe60
187+ uses : angular/dev-infra/github-actions/npm/checkout-and-setup-node@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
214188 - name : Install node modules
215189 run : yarn install --frozen-lockfile
216190 - name : Setup Bazel
217- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
191+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
218192 - run : yarn admin snapshots --verbose
219193 env :
220194 SNAPSHOT_BUILDS_GITHUB_TOKEN : ${{ secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN }}
0 commit comments