Skip to content

Commit

Permalink
fix: test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
frytg committed Nov 27, 2024
1 parent 1960e20 commit 1e8ef3a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
with:
deno-version: canary

- name: Deno version
run: deno --version

- name: Install dependencies
run: deno install --vendor

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1e8ef3a

Please sign in to comment.