Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run test suite on windows #851

Merged
merged 4 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading