diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ee8061440993..91775484d110e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -172,8 +172,8 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - exclude: - - os: ${{ github.ref_name != 'main' && 'windows-latest' || '' }} + # exclude: + # - os: ${{ github.ref_name != 'main' && 'windows-latest' || '' }} runs-on: ${{ matrix.os }} steps: - name: Enable long paths on Windows diff --git a/apps/oxlint/src-js/plugins/load.ts b/apps/oxlint/src-js/plugins/load.ts index e3045436ad44a..e392773d10e2b 100644 --- a/apps/oxlint/src-js/plugins/load.ts +++ b/apps/oxlint/src-js/plugins/load.ts @@ -1,3 +1,4 @@ +import { pathToFileURL } from 'node:url'; import { Context } from './context.js'; import { getErrorMessage } from './utils.js'; @@ -100,7 +101,7 @@ async function loadPluginImpl(path: string): Promise { throw new Error('This plugin has already been registered. This is a bug in Oxlint. Please report it.'); } - const { default: plugin } = (await import(path)) as { default: Plugin }; + const { default: plugin } = (await import(pathToFileURL(path).href)) as { default: Plugin }; registeredPluginPaths.add(path); diff --git a/apps/oxlint/test/e2e.test.ts b/apps/oxlint/test/e2e.test.ts index acf124ba149f8..95878a0650684 100644 --- a/apps/oxlint/test/e2e.test.ts +++ b/apps/oxlint/test/e2e.test.ts @@ -36,9 +36,7 @@ async function testFixture(fixtureName: string, options?: TestOptions): Promise< }); } -describe.skipIf( - process.platform === 'win32', -)('oxlint CLI', () => { +describe('oxlint CLI', () => { it('should lint a directory without errors', async () => { await testFixture('built_in_no_errors', { args: [] }); }); diff --git a/apps/oxlint/test/eslint-compat.test.ts b/apps/oxlint/test/eslint-compat.test.ts index 110dfe6edad30..10a16b9456bc9 100644 --- a/apps/oxlint/test/eslint-compat.test.ts +++ b/apps/oxlint/test/eslint-compat.test.ts @@ -17,7 +17,7 @@ async function testFixture(fixtureName: string): Promise { }); } -describe.skipIf(process.platform === 'win32')('ESLint compatibility', () => { +describe('ESLint compatibility', () => { it('`definePlugin` should work', async () => { await testFixture('definePlugin'); });