Skip to content
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
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/lib/theme/chart-palette.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading