Skip to content

Commit 8cd583a

Browse files
authored
Merge branch 'main' into main
2 parents 4c0656b + 15047ab commit 8cd583a

56 files changed

Lines changed: 8890 additions & 12218 deletions

Some content is hidden

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

‎.github/codecov.yml‎

Lines changed: 0 additions & 31 deletions
This file was deleted.

‎.github/workflows/build.yaml‎

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
- "src/**"
4545
- "test/**"
4646
npm:
47-
- "package-lock.json"
48-
- "test/package-lock.json"
47+
- "pnpm-lock.yaml"
48+
- "test/pnpm-lock.yaml"
4949
vscode:
5050
- "lib/**"
5151
- "patches/**"
@@ -58,15 +58,16 @@ jobs:
5858
runs-on: ubuntu-22.04
5959
steps:
6060
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
61+
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
6162
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
6263
with:
6364
node-version-file: .node-version
64-
cache: npm
65+
cache: pnpm
6566
cache-dependency-path: |
66-
package-lock.json
67-
test/package-lock.json
68-
- run: SKIP_SUBMODULE_DEPS=1 npm ci
69-
- run: npx prettier --check .
67+
pnpm-lock.yaml
68+
test/pnpm-lock.yaml
69+
- run: SKIP_SUBMODULE_DEPS=1 pnpm install --frozen-lockfile
70+
- run: pnpm exec prettier --check .
7071

7172
doctoc:
7273
name: Doctoc markdown files
@@ -75,15 +76,16 @@ jobs:
7576
if: needs.changes.outputs.docs == 'true'
7677
steps:
7778
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
79+
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
7880
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
7981
with:
8082
node-version-file: .node-version
81-
cache: npm
83+
cache: pnpm
8284
cache-dependency-path: |
83-
package-lock.json
84-
test/package-lock.json
85-
- run: SKIP_SUBMODULE_DEPS=1 npm ci
86-
- run: npm run doctoc
85+
pnpm-lock.yaml
86+
test/pnpm-lock.yaml
87+
- run: SKIP_SUBMODULE_DEPS=1 pnpm install --frozen-lockfile
88+
- run: pnpm run doctoc
8789

8890
lint-helm:
8991
name: Lint Helm chart
@@ -109,15 +111,16 @@ jobs:
109111
if: needs.changes.outputs.code == 'true' || needs.changes.outputs.ci == 'true' || needs.changes.outputs.npm == 'true'
110112
steps:
111113
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
114+
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
112115
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
113116
with:
114117
node-version-file: .node-version
115-
cache: npm
118+
cache: pnpm
116119
cache-dependency-path: |
117-
package-lock.json
118-
test/package-lock.json
119-
- run: SKIP_SUBMODULE_DEPS=1 npm ci
120-
- run: npm run lint:ts
120+
pnpm-lock.yaml
121+
test/pnpm-lock.yaml
122+
- run: SKIP_SUBMODULE_DEPS=1 pnpm install --frozen-lockfile
123+
- run: pnpm run lint:ts
121124

122125
lint-actions:
123126
name: Lint GitHub Actions
@@ -140,25 +143,21 @@ jobs:
140143
if: needs.changes.outputs.code == 'true' || needs.changes.outputs.npm == 'true'
141144
steps:
142145
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
146+
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
143147
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
144148
with:
145149
node-version-file: .node-version
146-
cache: npm
150+
cache: pnpm
147151
cache-dependency-path: |
148-
package-lock.json
149-
test/package-lock.json
150-
- run: SKIP_SUBMODULE_DEPS=1 npm ci
151-
- run: npm run test:unit
152-
- uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
153-
if: success()
154-
with:
155-
token: ${{ secrets.CODECOV_TOKEN }}
152+
pnpm-lock.yaml
153+
test/pnpm-lock.yaml
154+
- run: SKIP_SUBMODULE_DEPS=1 pnpm install --frozen-lockfile
155+
- run: pnpm run test:unit
156156

157157
build:
158158
name: linux-x64
159159
runs-on: ubuntu-22.04
160160
env:
161-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
162161
DISABLE_V8_COMPILE_CACHE: 1
163162
VERSION: 0.0.0
164163
VSCODE_ARCH: x64
@@ -178,13 +177,14 @@ jobs:
178177
with:
179178
submodules: true
180179
- run: quilt push -a
180+
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
181181
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
182182
with:
183183
node-version-file: .node-version
184-
cache: npm
184+
cache: pnpm
185185
cache-dependency-path: |
186-
package-lock.json
187-
test/package-lock.json
186+
pnpm-lock.yaml
187+
test/pnpm-lock.yaml
188188
189189
# Get Code's git hash. When this changes it means the content is
190190
# different and we need to rebuild.
@@ -205,22 +205,22 @@ jobs:
205205
if: steps.cache-vscode.outputs.cache-hit != 'true'
206206
run: |
207207
cd lib/vscode/build
208-
npm ci
208+
pnpm install --frozen-lockfile
209209
cd ..
210210
source ./build/azure-pipelines/linux/setup-env.sh
211211
# Run preinstall script before root dependencies are installed
212212
# so that v8 headers are patched correctly for native modules.
213-
node build/npm/preinstall.ts
214-
npm ci
213+
pnpm run preinstall
214+
pnpm install --frozen-lockfile
215215
cd ../..
216-
npm run build:vscode
216+
pnpm run build:vscode
217217
218218
# Build the code-server wrapper.
219-
- run: SKIP_SUBMODULE_DEPS=1 npm ci
220-
- run: npm run build
219+
- run: SKIP_SUBMODULE_DEPS=1 pnpm install --frozen-lockfile
220+
- run: pnpm run build
221221

222222
# Push up an artifact containing the linux-x64 release.
223-
- run: KEEP_MODULES=1 npm run release
223+
- run: KEEP_MODULES=1 pnpm run release
224224
- run: tar -czf package.tar.gz release
225225
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
226226
with:
@@ -237,14 +237,16 @@ jobs:
237237

238238
steps:
239239
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
240+
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
240241
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
241242
with:
242243
node-version-file: .node-version
243-
cache: npm
244+
cache: pnpm
244245
cache-dependency-path: |
245-
package-lock.json
246-
test/package-lock.json
247-
- run: SKIP_SUBMODULE_DEPS=1 npm ci
246+
pnpm-lock.yaml
247+
test/pnpm-lock.yaml
248+
249+
- run: SKIP_SUBMODULE_DEPS=1 pnpm install --frozen-lockfile
248250
- name: Install Playwright OS dependencies
249251
run: |
250252
./test/node_modules/.bin/playwright install-deps
@@ -255,7 +257,7 @@ jobs:
255257
name: linux-x64-package
256258
- run: tar -xzf package.tar.gz
257259

258-
- run: CODE_SERVER_TEST_ENTRY=./release npm run test:e2e
260+
- run: CODE_SERVER_TEST_ENTRY=./release pnpm run test:e2e
259261
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
260262
if: always()
261263
with:
@@ -287,14 +289,15 @@ jobs:
287289
tar -xzf caddy_2.5.2_linux_amd64.tar.gz --directory ~/.cache/caddy
288290
289291
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
292+
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6
290293
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v6
291294
with:
292295
node-version-file: .node-version
293-
cache: npm
296+
cache: pnpm
294297
cache-dependency-path: |
295-
package-lock.json
296-
test/package-lock.json
297-
- run: SKIP_SUBMODULE_DEPS=1 npm ci
298+
pnpm-lock.yaml
299+
test/pnpm-lock.yaml
300+
- run: SKIP_SUBMODULE_DEPS=1 pnpm install --frozen-lockfile
298301
- name: Install Playwright OS dependencies
299302
run: |
300303
./test/node_modules/.bin/playwright install-deps
@@ -306,7 +309,7 @@ jobs:
306309
- run: tar -xzf package.tar.gz
307310

308311
- run: ~/.cache/caddy/caddy start --config ./ci/Caddyfile
309-
- run: CODE_SERVER_TEST_ENTRY=./release npm run test:e2e:proxy
312+
- run: CODE_SERVER_TEST_ENTRY=./release pnpm run test:e2e:proxy
310313
- run: ~/.cache/caddy/caddy stop --config ./ci/Caddyfile
311314
if: always()
312315
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7

0 commit comments

Comments
 (0)