From 1e8ef3a8eb3b6cec7469bd7a57973f30c695c116 Mon Sep 17 00:00:00 2001 From: Daniel Freytag Date: Wed, 27 Nov 2024 21:09:32 +0100 Subject: [PATCH] fix: test on windows --- .github/workflows/test.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f32098..dc6ff53 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,9 @@ jobs: with: deno-version: canary + - name: Deno version + run: deno --version + - name: Install dependencies run: deno install --vendor @@ -114,21 +117,25 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: Node version + run: node --version + - name: Install JSR dependencies run: npx jsr add @cross/test @std/assert - name: Install NPM dependencies run: npm install luxon - - name: Node version - run: node --version - - name: Set up package.json run: 'echo ''{ "type": "module" }'' > package.json' - name: Test (Windows) if: matrix.os == 'windows-latest' - run: npx --yes glob "**/*.test.ts" | xargs -I {} npx tsx --test "{}" + run: | + $files = npx --yes glob "**/*.test.ts" + foreach ($file in $files) { + npx tsx --test $file + } shell: pwsh - name: Test (Linux/macOS)