File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed
Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 3737 npm i -g pnpm@next-7
3838 time make test-e2e-pnpm
3939
40- - name : Test yarn
40+ - name : Test yarn (classic)
41+ run : |
42+ npm i -g yarn@latest
43+ time make test-e2e-yarn
44+
45+ - name : Test yarn (berry)
4146 run : |
4247 npm i -g yarn@latest
4348 time make test-e2e-yarn-berry
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ lib/deno/lib.deno.d.ts:
119119 deno types > lib/deno/lib.deno.d.ts
120120
121121# End-to-end tests
122- test-e2e : test-e2e-npm test-e2e-pnpm test-e2e-yarn-berry test-e2e-deno
122+ test-e2e : test-e2e-npm test-e2e-pnpm test-e2e-yarn test-e2e-yarn -berry test-e2e-deno
123123
124124test-e2e-npm :
125125 # Test normal install
@@ -189,6 +189,31 @@ test-e2e-pnpm:
189189 # Clean up
190190 rm -fr e2e-pnpm
191191
192+ test-e2e-yarn :
193+ # Test normal install
194+ rm -fr e2e-yarn && mkdir e2e-yarn && cd e2e-yarn && echo {} > package.json && touch yarn.lock && yarn set version classic && yarn add esbuild
195+ cd e2e-yarn && echo " 1+2" | yarn esbuild && yarn node -p " require('esbuild').transformSync('1+2').code"
196+ # Test CI reinstall
197+ cd e2e-yarn && rm -fr node_modules && yarn install --immutable
198+ cd e2e-yarn && echo " 1+2" | yarn esbuild && yarn node -p " require('esbuild').transformSync('1+2').code"
199+
200+ # Test install without scripts
201+ rm -fr e2e-yarn && mkdir e2e-yarn && cd e2e-yarn && echo {} > package.json && touch yarn.lock && echo 'enableScripts: false' > .yarnrc.yml && yarn set version classic && yarn add esbuild
202+ cd e2e-yarn && echo "1+2" | yarn esbuild && yarn node -p "require('esbuild').transformSync('1+2').code"
203+ # Test CI reinstall
204+ cd e2e-yarn && rm -fr node_modules && yarn install --immutable
205+ cd e2e-yarn && echo "1+2" | yarn esbuild && yarn node -p "require('esbuild').transformSync('1+2').code"
206+
207+ # Test install without optional dependencies
208+ rm -fr e2e-yarn && mkdir e2e-yarn && cd e2e-yarn && echo {} > package.json && touch yarn.lock && yarn set version classic && yarn add esbuild
209+ cd e2e-yarn && echo "1+2" | yarn esbuild && yarn node -p "require('esbuild').transformSync('1+2').code"
210+ # Test CI reinstall
211+ cd e2e-yarn && rm -fr node_modules && yarn install --immutable --ignore-optional
212+ cd e2e-yarn && echo "1+2" | yarn esbuild && yarn node -p "require('esbuild').transformSync('1+2').code"
213+
214+ # Clean up
215+ rm -fr e2e-yarn
216+
192217test-e2e-yarn-berry :
193218 # Test normal install
194219 rm -fr e2e-yb && mkdir e2e-yb && cd e2e-yb && echo {} > package.json && touch yarn.lock && yarn set version berry && yarn add esbuild
You can’t perform that action at this time.
0 commit comments