Skip to content

Commit

Permalink
ci: run test suite on windows (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 19, 2024
1 parent 052094b commit dfababb
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 44 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ jobs:
run: pnpm lint

test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,10 @@
"engines": {
"node": ">=18.20.2"
},
"packageManager": "pnpm@9.1.1"
"packageManager": "pnpm@9.1.1",
"pnpm": {
"patchedDependencies": {
"nuxt@3.11.2": "patches/nuxt@3.11.2.patch"
}
}
}
13 changes: 13 additions & 0 deletions patches/nuxt@3.11.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/index.mjs b/dist/index.mjs
index 04537d45037445e8dc497d90ad631e48af69a18d..4d5ea3ef4c39e1c3cd1f5a562fd16db78cbd85fe 100644
--- a/dist/index.mjs
+++ b/dist/index.mjs
@@ -3538,7 +3538,7 @@ const schemaModule = defineNuxtModule({
return;
}
const resolver = createResolver(import.meta.url);
- const _resolveSchema = jiti(dirname(import.meta.url), {
+ const _resolveSchema = jiti(dirname(fileURLToPath(import.meta.url)), {
esmResolve: true,
interopDefault: true,
cache: false,
Loading

0 comments on commit dfababb

Please sign in to comment.