Skip to content

Commit

Permalink
add an end-to-end test for deno (#2729)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Dec 10, 2022
1 parent 8ef19fe commit a909586
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/e2e.yml
Expand Up @@ -19,6 +19,13 @@ jobs:
with:
node-version: 16

# The version of Deno is pinned because version 1.25.1 was causing test
# flakes due to random segfaults.
- name: Setup Deno 1.24.0
uses: denoland/setup-deno@main
with:
deno-version: v1.24.0

- name: Test npm
run: |
npm i -g npm@next-7
Expand All @@ -33,3 +40,7 @@ jobs:
run: |
npm i -g yarn@latest
time make test-e2e-yarn-berry
- name: Test deno
run: |
time make test-e2e-deno
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -100,7 +100,7 @@ lib-typecheck: | lib/node_modules
cd lib && node_modules/.bin/tsc -noEmit -p tsconfig-deno.json

# End-to-end tests
test-e2e: test-e2e-npm test-e2e-pnpm test-e2e-yarn-berry
test-e2e: test-e2e-npm test-e2e-pnpm test-e2e-yarn-berry test-e2e-deno

test-e2e-npm:
# Test normal install
Expand Down Expand Up @@ -204,6 +204,9 @@ test-e2e-yarn-berry:
# Clean up
rm -fr e2e-yb

test-e2e-deno:
deno eval 'import { transform, stop } from "https://deno.land/x/esbuild@v$(ESBUILD_VERSION)/mod.js"; console.log((await transform("1+2")).code); stop()' | grep "1 + 2;"

test-yarnpnp: platform-wasm
node scripts/test-yarnpnp.js

Expand Down

0 comments on commit a909586

Please sign in to comment.