Skip to content

Commit 0438f64

Browse files
committed
ci: run deno tests on windows
1 parent 7549073 commit 0438f64

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ jobs:
6969
run: go vet ./cmd/... ./internal/... ./pkg/...
7070

7171
- name: Deno Tests (non-Windows)
72-
# Deno tests currently don't run on Windows because of "esbuild" vs.
73-
# "esbuild.exe" in the test harness. This should be fixed...
7472
if: matrix.os != 'windows-latest'
7573
run: make test-deno
7674

75+
- name: Deno Tests (Windows)
76+
if: matrix.os == 'windows-latest'
77+
run: make test-deno-windows
78+
7779
- name: Test for path/filepath
7880
if: matrix.os == 'ubuntu-latest'
7981
run: make no-filepath

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ test-wasm-browser: platform-wasm | scripts/browser/node_modules
6767
test-deno: esbuild platform-deno
6868
ESBUILD_BINARY_PATH="$(shell pwd)/esbuild" deno test --allow-run --allow-env --allow-net --allow-read --allow-write --no-check scripts/deno-tests.js
6969

70+
test-deno-windows: esbuild platform-deno
71+
ESBUILD_BINARY_PATH=./esbuild.exe deno test --allow-run --allow-env --allow-net --allow-read --allow-write --no-check scripts/deno-tests.js
72+
7073
register-test: version-go | scripts/node_modules
7174
node scripts/esbuild.js npm/esbuild/package.json --version
7275
node scripts/register-test.js

0 commit comments

Comments
 (0)