From aef89c8ac87748e93e575a0c058f90af95edfd91 Mon Sep 17 00:00:00 2001 From: David Sveningsson Date: Sat, 18 Jan 2025 11:17:09 +0100 Subject: [PATCH 1/2] fix: fix `--config` not expanding properly on windows --- src/cli/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/cli.ts b/src/cli/cli.ts index d2e33578..6bf184cb 100644 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -1,4 +1,4 @@ -import path from "node:path"; +import path from "node:path/posix"; import { type ConfigData, type ConfigLoader, From e8de59b1c2953dbc691513c3e34cd56c768896f3 Mon Sep 17 00:00:00 2001 From: David Sveningsson Date: Sun, 19 Jan 2025 11:11:48 +0100 Subject: [PATCH 2/2] ci: run tests on windows --- .github/workflows/windows.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 00000000..a481c19e --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,26 @@ +on: + push: + +defaults: + run: + shell: pwsh + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + tests: + runs-on: windows-latest + strategy: + fail-fast: true + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Install dependencies + run: npm ci + - name: Jest + run: npm exec jest