@@ -18,27 +18,11 @@ jobs:
1818 runs-on : ubuntu-latest
1919
2020 steps :
21- - name : Harden Runner
22- uses : step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
21+ - name : Setup environment
22+ uses : nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
2323 with :
24- egress-policy : block
25- allowed-endpoints : >
26- github.com:443
27- registry.npmjs.org:443
28-
29- - name : Checkout code
30- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
31- with :
32- persist-credentials : false
33-
34- - name : Setup Node.js
35- uses : actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
36- with :
37- node-version-file : ' .nvmrc'
38- cache : ' npm'
39-
40- - name : Install dependencies
41- run : npm ci
24+ use-version-file : true
25+ pnpm : true
4226
4327 - name : Run linting
4428 run : node --run lint
@@ -51,33 +35,11 @@ jobs:
5135 runs-on : ubuntu-latest
5236
5337 steps :
54- - name : Harden Runner
55- uses : step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
38+ - name : Setup environment
39+ uses : nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
5640 with :
57- egress-policy : block
58- allowed-endpoints : >
59- cli.codecov.io:443
60- github.com:443
61- ingest.codecov.io:443
62- keybase.io:443
63- o26192.ingest.us.sentry.io:443
64- raw.githubusercontent.com:443
65- registry.npmjs.org:443
66- storage.googleapis.com:443
67-
68- - name : Checkout code
69- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
70- with :
71- persist-credentials : false
72-
73- - name : Setup Node.js
74- uses : actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
75- with :
76- node-version-file : ' .nvmrc'
77- cache : ' npm'
78-
79- - name : Install dependencies
80- run : npm ci
41+ use-version-file : true
42+ pnpm : true
8143
8244 - name : Run tests with coverage
8345 run : node --run test:ci
@@ -100,37 +62,11 @@ jobs:
10062 runs-on : ubuntu-latest
10163
10264 steps :
103- - name : Harden Runner
104- uses : step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
105- with :
106- egress-policy : block
107- allowed-endpoints : >
108- *.archive.ubuntu.com:80
109- *.microsoft.com:443
110- api.github.com:443
111- cdn.playwright.dev:443
112- dl.google.com:443
113- esm.ubuntu.com:443
114- fonts.googleapis.com:443
115- fonts.gstatic.com:443
116- github.com:443
117- raw.githubusercontent.com:443
118- registry.npmjs.org:443
119- storage.googleapis.com:443
120-
121- - name : Checkout code
122- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
65+ - name : Setup environment
66+ uses : nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
12367 with :
124- persist-credentials : false
125-
126- - name : Setup Node.js
127- uses : actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
128- with :
129- node-version-file : ' .nvmrc'
130- cache : ' npm'
131-
132- - name : Install dependencies
133- run : npm ci
68+ use-version-file : true
69+ pnpm : true
13470
13571 - name : Checkout Node.js source
13672 uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -141,10 +77,10 @@ jobs:
14177 path : node
14278
14379 - name : Build Node.js API docs
144- run : npx @doc-kit /cli generate -t web -i "./node/doc/api/assert.md" -o out --config-file ./e2e/doc-kit.config.mjs
80+ run : node packages /cli/bin/cli.mjs generate -t web -i "./node/doc/api/assert.md" -o out --config-file ./e2e/doc-kit.config.mjs
14581
14682 - name : Install Playwright browsers
147- run : npx playwright install --with-deps
83+ run : pnpm exec playwright install --with-deps
14884
14985 - name : Run E2E tests
15086 run : node --run test:e2e
0 commit comments