9
9
# Developers can make one-off pushes to `ci-*` branches to manually trigger full CI
10
10
# prior to opening a pull request.
11
11
- ci-*
12
- pull_request :
13
- types : [opened, synchronize, reopened]
14
12
15
13
concurrency :
16
14
group : ${{ github.workflow }}-${{ github.ref }}
42
40
runs-on : ubuntu-latest
43
41
steps :
44
42
- 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
51
44
- name : Install node modules
52
45
run : yarn install --frozen-lockfile --ignore-scripts
53
46
- name : Run ESLint
@@ -60,47 +53,30 @@ jobs:
60
53
run : yarn -s admin validate
61
54
- name : Check tooling setup
62
55
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 }}
73
56
74
57
build :
75
58
runs-on : ubuntu-latest
76
59
steps :
77
60
- 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
79
62
- name : Setup Bazel
80
- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
63
+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
81
64
- 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
83
66
- name : Install node modules
84
67
run : yarn install --frozen-lockfile
85
68
- name : Build release targets
86
69
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
94
70
95
71
test :
96
72
runs-on : ubuntu-latest
97
73
steps :
98
74
- 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
100
76
- name : Setup Bazel
101
- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
77
+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
102
78
- 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
104
80
- name : Install node modules
105
81
run : yarn install --frozen-lockfile
106
82
- name : Run module tests
@@ -135,19 +111,19 @@ jobs:
135
111
runs-on : ${{ matrix.os }}
136
112
steps :
137
113
- 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
139
115
- name : Install node modules
140
116
run : yarn install --frozen-lockfile
141
117
- name : Setup Bazel
142
- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
118
+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
143
119
- 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
145
121
- name : Run CLI E2E tests
146
122
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 }}
147
123
148
124
e2e-snapshots :
149
125
needs : analyze
150
- if : needs.analyze.outputs.snapshots == 'true' || github.event_name == 'push'
126
+ if : needs.analyze.outputs.snapshots == 'true'
151
127
strategy :
152
128
fail-fast : false
153
129
matrix :
@@ -158,31 +134,30 @@ jobs:
158
134
runs-on : ${{ matrix.os }}
159
135
steps :
160
136
- 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
162
138
- name : Install node modules
163
139
run : yarn install --frozen-lockfile
164
140
- name : Setup Bazel
165
- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
141
+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
166
142
- 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
168
144
- name : Run CLI E2E tests
169
145
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 }}
170
146
171
147
browsers :
172
- if : github.event_name == 'push'
173
148
runs-on : ubuntu-latest
174
149
name : Browser Compatibility Tests
175
150
env :
176
151
SAUCE_TUNNEL_IDENTIFIER : angular-cli-${{ github.workflow }}-${{ github.run_number }}
177
152
steps :
178
153
- 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
180
155
- name : Install node modules
181
156
run : yarn install --frozen-lockfile
182
157
- name : Setup Bazel
183
- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
158
+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
184
159
- 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
186
161
- name : Run E2E Browser tests
187
162
env :
188
163
SAUCE_USERNAME : ${{ vars.SAUCE_USERNAME }}
@@ -204,17 +179,16 @@ jobs:
204
179
path : ${{ env.SAUCE_CONNECT_DIR_IN_HOST }}/sauce-connect.log
205
180
206
181
publish-snapshots :
207
- if : github.event_name == 'push'
208
182
runs-on : ubuntu-latest
209
183
env :
210
184
CIRCLE_BRANCH : ${{ github.ref_name }}
211
185
steps :
212
186
- 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
214
188
- name : Install node modules
215
189
run : yarn install --frozen-lockfile
216
190
- name : Setup Bazel
217
- uses : angular/dev-infra/github-actions/bazel/setup@128f3277d17e083606346fcb85f3cd934e5bbe60
191
+ uses : angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
218
192
- run : yarn admin snapshots --verbose
219
193
env :
220
194
SNAPSHOT_BUILDS_GITHUB_TOKEN : ${{ secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN }}
0 commit comments