Skip to content

Commit 69c4f7b

Browse files
committed
Merge branch 'main' into pr-62612
2 parents 5e6b127 + ee09569 commit 69c4f7b

42,087 files changed

Lines changed: 912981 additions & 472751 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
// Use 'postCreateCommand' to run commands after the container is created.
1717
"postCreateCommand": {
18-
"Configure Build Tools": "sudo corepack enable npm; sudo npm install -g hereby; npm ci",
18+
"Configure Build Tools": "sudo npm install -g hereby; npm ci",
1919
"Install pprof": "go install github.com/google/pprof@latest",
2020
"Install Graphviz": "sudo apt install graphviz"
2121
},

.github/workflows/accept-baselines-fix-lints.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
with:
2222
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
23-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
23+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2424
with:
2525
node-version: 'lts/*'
2626

.github/workflows/ci.yml

Lines changed: 58 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -26,70 +26,63 @@ defaults:
2626
jobs:
2727
test:
2828
strategy:
29-
fail-fast: false
29+
fail-fast: ${{ github.event_name == 'merge_group' }}
3030
matrix:
3131
config:
32-
# Main builds
32+
# PRs only check the newest and oldest Node versions.
33+
# macOS only ever checks the neest and oldest Node versions, but never in PR runs.
3334
- os: ubuntu-latest
3435
node-version: '24'
3536
bundle: true
36-
37-
# Other builds (skipped in merge queues)
3837
- os: windows-latest
3938
node-version: '24'
4039
bundle: true
4140
skip: ${{ github.event_name == 'merge_group' }}
4241
- os: macos-latest
4342
node-version: '24'
4443
bundle: true
45-
skip: ${{ github.event_name == 'merge_group' }}
44+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
45+
4646
- os: ubuntu-latest
4747
node-version: '22'
4848
bundle: true
49+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
4950
- os: windows-latest
5051
node-version: '22'
5152
bundle: true
52-
skip: ${{ github.event_name == 'merge_group' }}
53-
# Skip macOS for this version; resources are limited.
54-
# - os: macos-latest
55-
# node-version: '22'
56-
# bundle: true
57-
# skip: ${{ github.event_name == 'merge_group' }}
53+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
54+
5855
- os: ubuntu-latest
5956
node-version: '20'
6057
bundle: true
58+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
6159
- os: windows-latest
6260
node-version: '20'
6361
bundle: true
64-
skip: ${{ github.event_name == 'merge_group' }}
65-
# Skip macOS for this version; resources are limited.
66-
# - os: macos-latest
67-
# node-version: '20'
68-
# bundle: true
69-
# skip: ${{ github.event_name == 'merge_group' }}
62+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
63+
7064
- os: ubuntu-latest
7165
node-version: '18'
7266
bundle: true
67+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
7368
- os: windows-latest
7469
node-version: '18'
7570
bundle: true
76-
skip: ${{ github.event_name == 'merge_group' }}
77-
# Skip macOS for this version; resources are limited.
78-
# - os: macos-latest
79-
# node-version: '18'
80-
# bundle: true
81-
# skip: ${{ github.event_name == 'merge_group' }}
71+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
72+
8273
- os: ubuntu-latest
8374
node-version: '16'
8475
bundle: true
76+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
8577
- os: windows-latest
8678
node-version: '16'
8779
bundle: true
88-
skip: ${{ github.event_name == 'merge_group' }}
80+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
8981
- os: macos-latest
9082
node-version: '16'
9183
bundle: true
92-
skip: ${{ github.event_name == 'merge_group' }}
84+
skip: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
85+
9386
- os: ubuntu-latest
9487
node-version: '14'
9588
bundle: true
@@ -98,12 +91,9 @@ jobs:
9891
node-version: '14'
9992
bundle: true
10093
skip: ${{ github.event_name == 'merge_group' }}
101-
# No Node 14 on ARM macOS
102-
# - os: macos-latest
103-
# node-version: '14'
104-
# bundle: true
105-
# skip: ${{ github.event_name == 'merge_group' }}
94+
# Node 14 does not support macOS ARM.
10695

96+
# --no-bundle build
10797
- os: ubuntu-latest
10898
node-version: 'lts/*'
10999
bundle: false
@@ -117,9 +107,9 @@ jobs:
117107
name: Test Node ${{ matrix.config.node-version }} on ${{ matrix.config.os }}${{ (!matrix.config.bundle && ' with --no-bundle') || '' }}
118108

119109
steps:
120-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
110+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
121111
- name: Use node version ${{ matrix.config.node-version }}
122-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
112+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
123113
with:
124114
node-version: ${{ matrix.config.node-version }}
125115
check-latest: true
@@ -143,15 +133,15 @@ jobs:
143133
runs-on:
144134
- 'self-hosted'
145135
- '1ES.Pool=TypeScript-1ES-GitHub-Large'
146-
- '1ES.ImageOverride=mariner-2.0'
136+
- '1ES.ImageOverride=azure-linux-3'
147137

148138
permissions:
149139
id-token: write
150140
contents: read
151141

152142
steps:
153-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
154-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
143+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
144+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
155145
with:
156146
node-version: 'lts/*'
157147
- run: npm ci
@@ -160,12 +150,12 @@ jobs:
160150
run: npm test -- --no-lint --coverage
161151

162152
- name: Upload coverage artifact
163-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
153+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
164154
with:
165155
name: coverage
166156
path: coverage
167157

168-
- uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
158+
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
169159
with:
170160
use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}
171161
disable_search: true
@@ -175,8 +165,8 @@ jobs:
175165
runs-on: ubuntu-latest
176166

177167
steps:
178-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
179-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
168+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
169+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
180170
with:
181171
node-version: 'lts/*'
182172
- run: npm ci
@@ -188,8 +178,8 @@ jobs:
188178
runs-on: ubuntu-latest
189179

190180
steps:
191-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
192-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
181+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
182+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
193183
with:
194184
node-version: 'lts/*'
195185
- run: npm ci
@@ -201,13 +191,13 @@ jobs:
201191
runs-on: ubuntu-latest
202192

203193
steps:
204-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
205-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
194+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
195+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
206196
with:
207197
node-version: 'lts/*'
208198
- run: npm ci
209199

210-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
200+
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
211201
with:
212202
path: ~/.cache/dprint
213203
key: ${{ runner.os }}-dprint-${{ hashFiles('package-lock.json', '.dprint.jsonc') }}
@@ -218,11 +208,13 @@ jobs:
218208
run: npx dprint check
219209

220210
browser-integration:
211+
if: ${{ github.event_name != 'merge_group' }}
212+
221213
runs-on: ubuntu-latest
222214

223215
steps:
224-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
225-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
216+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
217+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
226218
with:
227219
node-version: 'lts/*'
228220
- run: npm ci
@@ -237,8 +229,8 @@ jobs:
237229
runs-on: ubuntu-latest
238230

239231
steps:
240-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
241-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
232+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
233+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
242234
with:
243235
node-version: 'lts/*'
244236
- run: npm ci
@@ -250,9 +242,9 @@ jobs:
250242
runs-on: ubuntu-latest
251243

252244
steps:
253-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
245+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
254246

255-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
247+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
256248
with:
257249
node-version: 'lts/*'
258250
- run: |
@@ -291,16 +283,16 @@ jobs:
291283
if: github.event_name == 'pull_request'
292284

293285
steps:
294-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
286+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
295287
with:
296288
path: pr
297289

298-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
290+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
299291
with:
300292
path: base
301293
ref: ${{ github.base_ref }}
302294

303-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
295+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
304296
with:
305297
node-version: 'lts/*'
306298
- run: |
@@ -316,24 +308,30 @@ jobs:
316308
working-directory: ./pr
317309

318310
- run: npm ci
311+
id: base-npm-ci
312+
continue-on-error: true
319313
working-directory: ./base
320314

321315
- run: npx hereby lkg
322316
working-directory: ./pr
323317

324318
- run: npx hereby lkg
319+
id: base-lkg
320+
continue-on-error: true
321+
if: ${{ steps.base-npm-ci.outcome == 'success' }}
325322
working-directory: ./base
326323

327324
- run: |
328325
echo "See $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID for more info."
329326
node ./pr/scripts/checkPackageSize.mjs ./base ./pr >> $GITHUB_STEP_SUMMARY
327+
if: ${{ steps.base-lkg.outcome == 'success' }}
330328
331329
misc:
332330
runs-on: ubuntu-latest
333331

334332
steps:
335-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
336-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
333+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
334+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
337335
with:
338336
node-version: 'lts/*'
339337
- run: npm ci
@@ -348,8 +346,8 @@ jobs:
348346
runs-on: ubuntu-latest
349347

350348
steps:
351-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
352-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
349+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
350+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
353351
with:
354352
node-version: 'lts/*'
355353
- run: npm ci
@@ -369,8 +367,8 @@ jobs:
369367
runs-on: ubuntu-latest
370368

371369
steps:
372-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
373-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
370+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
371+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
374372
with:
375373
node-version: 'lts/*'
376374
- run: npm ci
@@ -406,7 +404,7 @@ jobs:
406404
407405
- name: Upload baseline diff artifact
408406
if: ${{ failure() && steps.check-baselines.conclusion == 'failure' }}
409-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
407+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
410408
with:
411409
name: fix_baselines.patch
412410
path: fix_baselines.patch

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242

4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
45+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
49+
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
5050
with:
5151
config-file: ./.github/codeql/codeql-configuration.yml
5252
# Override language selection by uncommenting this and choosing your languages
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below).
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
59+
uses: github/codeql-action/autobuild@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -70,4 +70,4 @@ jobs:
7070
# make release
7171

7272
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
73+
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
# You can define any steps you want, and they will run before the agent starts.
1616
# If you do not check out your code, Copilot will do this for you.
1717
steps:
18-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2020
- run: npm ci
2121
# pull dprint caches before network access is blocked
2222
- run: npx hereby check-format || true

.github/workflows/create-cherry-pick-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
if: github.repository == 'microsoft/TypeScript'
4848

4949
steps:
50-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
50+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5151
with:
5252
filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
5353
fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none.

0 commit comments

Comments
 (0)