@@ -13,86 +13,93 @@ jobs:
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v6
16+ - uses : pnpm/action-setup@v4
1617 - uses : actions/setup-node@v6
1718 with :
1819 node-version-file : ' .node-version'
19- cache : yarn
20- - run : yarn install --immutable
20+ cache : pnpm
21+ - run : pnpm install --frozen-lockfile
2122 - name : Turbo cache
2223 uses : ./.github/actions/turbo-cache
23- - run : yarn build
24+ - run : pnpm build
2425
2526 cspell :
2627 name : CSpell
2728 runs-on : ubuntu-latest
2829 steps :
2930 - uses : actions/checkout@v6
31+ - uses : pnpm/action-setup@v4
3032 - uses : actions/setup-node@v6
3133 with :
3234 node-version-file : ' .node-version'
33- cache : yarn
34- - run : yarn install --immutable
35- - run : yarn lint-cspell
35+ cache : pnpm
36+ - run : pnpm install --frozen-lockfile
37+ - run : pnpm lint-cspell
3638
3739 format :
3840 name : Format
3941 runs-on : ubuntu-latest
4042 steps :
4143 - uses : actions/checkout@v6
44+ - uses : pnpm/action-setup@v4
4245 - uses : actions/setup-node@v6
4346 with :
4447 node-version-file : ' .node-version'
45- cache : yarn
46- - run : yarn install --immutable
47- - run : yarn format-check
48- - run : yarn svgo-check
48+ cache : pnpm
49+ - run : pnpm install --frozen-lockfile
50+ - run : pnpm check:lockfile
51+ - run : pnpm format-check
52+ - run : pnpm svgo-check
4953
5054 dedupe-check :
51- name : Yarn Dedupe Check
55+ name : pnpm Dedupe Check
5256 runs-on : ubuntu-latest
5357 steps :
5458 - uses : actions/checkout@v6
59+ - uses : pnpm/action-setup@v4
5560 - uses : actions/setup-node@v6
5661 with :
5762 node-version-file : ' .node-version'
58- cache : yarn
59- - run : yarn install --immutable
60- - run : yarn dedupe --check
63+ cache : pnpm
64+ - run : pnpm install --frozen-lockfile
65+ - run : pnpm dedupe --check
6166
6267 vitest :
6368 name : Vitest Unit Tests
6469 runs-on : ubuntu-latest
6570 needs : [build]
6671 steps :
6772 - uses : actions/checkout@v6
73+ - uses : pnpm/action-setup@v4
6874 - uses : actions/setup-node@v6
6975 with :
7076 node-version-file : ' .node-version'
71- cache : yarn
72- - run : yarn install --immutable
77+ cache : pnpm
78+ - run : pnpm install --frozen-lockfile
7379 - name : Turbo cache
7480 uses : ./.github/actions/turbo-cache
7581 with :
7682 restore-build : true
77- - run : npx playwright install --with-deps chromium
78- - run : yarn test
83+ - run : pnpm --filter @graphiql/react exec playwright install --with-deps chromium
84+ - run : pnpm test
7985
8086 graphql-17-fragment-arguments :
8187 name : GraphQL 17 Fragment Arguments
8288 runs-on : ubuntu-latest
8389 steps :
8490 - uses : actions/checkout@v6
91+ - uses : pnpm/action-setup@v4
8592 - uses : actions/setup-node@v6
8693 with :
8794 node-version-file : ' .node-version'
88- cache : yarn
89- - run : yarn install --immutable
90- - run : yarn workspace graphql-language-service add --dev graphql@17.0.2
95+ cache : pnpm
96+ - run : pnpm install --frozen-lockfile
97+ - run : pnpm --filter graphql-language-service add --save -dev graphql@17.0.2
9198 - name : Build and typecheck graphql-language-service
92- run : yarn workspace graphql-language-service exec tsc
99+ run : pnpm --filter graphql-language-service exec tsc
93100 - name : Test fragment argument integration
94101 run : >-
95- yarn vitest run packages/graphql-language-service/src/parser/__tests__/OnlineParser.test.ts packages/graphql-language-service/src/interface/__tests__/getAutocompleteSuggestions.test.ts packages/graphql-language-service/src/interface/__tests__/getDiagnostics.test.ts packages/graphql-language-service/src/interface/__tests__/getHoverInformation.test.ts
102+ pnpm exec vitest run packages/graphql-language-service/src/parser/__tests__/OnlineParser.test.ts packages/graphql-language-service/src/interface/__tests__/getAutocompleteSuggestions.test.ts packages/graphql-language-service/src/interface/__tests__/getDiagnostics.test.ts packages/graphql-language-service/src/interface/__tests__/getHoverInformation.test.ts
96103
97104
98105 lint :
@@ -101,61 +108,65 @@ jobs:
101108 needs : [build]
102109 steps :
103110 - uses : actions/checkout@v6
111+ - uses : pnpm/action-setup@v4
104112 - uses : actions/setup-node@v6
105113 with :
106114 node-version-file : ' .node-version'
107- cache : yarn
108- - run : yarn install --immutable
115+ cache : pnpm
116+ - run : pnpm install --frozen-lockfile
109117 - name : Turbo cache
110118 uses : ./.github/actions/turbo-cache
111119 with :
112120 restore-build : true
113- - run : yarn build
114- - run : yarn oxlint
121+ - run : pnpm build
122+ - run : pnpm oxlint
115123
116124 types-check :
117125 name : Types Check
118126 runs-on : ubuntu-latest
119127 needs : [build]
120128 steps :
121129 - uses : actions/checkout@v6
130+ - uses : pnpm/action-setup@v4
122131 - uses : actions/setup-node@v6
123132 with :
124133 node-version-file : ' .node-version'
125- cache : yarn
126- - run : yarn install --immutable
134+ cache : pnpm
135+ - run : pnpm install --frozen-lockfile
127136 - name : Turbo cache
128137 uses : ./.github/actions/turbo-cache
129138 with :
130139 restore-build : true
131- - run : yarn types:check
140+ - run : pnpm types:check
132141
133142 e2e :
134143 name : Cypress
135144 runs-on : ubuntu-latest
136145 needs : [build]
137146 steps :
138147 - uses : actions/checkout@v6
148+ - uses : pnpm/action-setup@v4
139149 - uses : actions/setup-node@v6
140150 with :
141151 node-version-file : ' .node-version'
142- cache : yarn
143- - run : yarn install --immutable
152+ cache : pnpm
153+ - run : pnpm install --frozen-lockfile
144154 - name : Turbo cache
145155 uses : ./.github/actions/turbo-cache
146156 with :
147157 restore-build : true
148- - run : yarn build
158+ - run : pnpm build
149159 - uses : actions/cache@v5
150160 with :
151161 path : |
152162 ~/.cache/Cypress
153- key : cypress-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
163+ key : cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
164+ - run : pnpm --filter graphiql-e2e exec cypress install
154165 - name : Cypress run
155166 uses : cypress-io/github-action@v7
156167 with :
157168 install : false
158- command : yarn e2e
169+ command : pnpm e2e
159170 env :
160171 # GitHub runners have no usable GPU; Electron's GPU process can
161172 # crash (dawn/Vulkan) and wedge the browser mid-run
@@ -179,27 +190,29 @@ jobs:
179190 needs : [build, lint, vitest, e2e]
180191 steps :
181192 - uses : actions/checkout@v6
193+ - uses : pnpm/action-setup@v4
182194 - uses : actions/setup-node@v6
183195 with :
184196 node-version-file : ' .node-version'
185- cache : yarn
186- - run : yarn install --immutable
197+ cache : pnpm
198+ - run : pnpm install --frozen-lockfile
187199 - name : Turbo cache
188200 uses : ./.github/actions/turbo-cache
189201 with :
190202 restore-build : true
191- - run : yarn build
192- - run : npx pkg-pr-new publish --comment=off './packages/*'
203+ - run : pnpm build
204+ - run : pnpm dlx pkg-pr-new publish --comment=off './packages/*'
193205
194206 license-check :
195207 name : Check Licenses
196208 runs-on : ubuntu-latest
197209 steps :
198210 - uses : actions/checkout@v6
211+ - uses : pnpm/action-setup@v4
199212 - uses : actions/setup-node@v6
200213 with :
201214 node-version-file : ' .node-version'
202- cache : yarn
203- - run : yarn install --immutable
215+ cache : pnpm
216+ - run : pnpm install --frozen-lockfile
204217 - name : License Check
205- run : yarn license-check
218+ run : pnpm license-check
0 commit comments