From 33b065ef0c5687f14574ea569fa6f5a303d0aaf4 Mon Sep 17 00:00:00 2001 From: 8liam Date: Wed, 25 Nov 2026 15:49:09 +1000 Subject: [PATCH 1/2] fix(theme): read index.css line endings the same on every OS Windows checks the file out with CRLF, so the light token block never matched and the v0.9.3 release build failed. --- src/lib/theme/chart-palette.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/theme/chart-palette.test.ts b/src/lib/theme/chart-palette.test.ts index 64d4f98..c477f7c 100644 --- a/src/lib/theme/chart-palette.test.ts +++ b/src/lib/theme/chart-palette.test.ts @@ -64,7 +64,10 @@ for (const theme of THEMES) { }); test(`${theme} CSS tokens match the config`, () => { - const css = readFileSync(new URL("../../index.css", import.meta.url), "utf8"); + const css = readFileSync(new URL("../../index.css", import.meta.url), "utf8").replace( + /\r\n/g, + "\n", + ); const selector = theme === "dark" ? '[data-theme="dark"] {' : ':root,\n[data-theme="light"] {'; const blocks = css .split(selector) From e7ac56bf967eaafeb7c2dab58c4c444e64efd547 Mon Sep 17 00:00:00 2001 From: 8liam Date: Wed, 25 Nov 2026 15:49:09 +1000 Subject: [PATCH 2/2] ci: run the test suite on macOS and Windows for every PR --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ff65d3..1385fa3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,25 @@ jobs: - run: pnpm exec vp build - run: pnpm desktop:bundle + # Release builds run the tests on macOS and Windows too, so catch platform-only failures here first. + test: + strategy: + fail-fast: false + matrix: + os: [macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v7 + - uses: pnpm/action-setup@v6 + with: + version: 12.14.0 + - uses: actions/setup-node@v7 + with: + node-version: 24 + cache: pnpm + - run: pnpm install --frozen-lockfile + - run: pnpm test + # The Docker image has its own dependency set (--prod) and file layout, which `check` never exercises. docker: runs-on: ubuntu-latest