From c904e3d34e686b7bfae15c5608669c13df33bfa6 Mon Sep 17 00:00:00 2001 From: Jonas Plum Date: Sun, 24 Aug 2025 10:49:44 +0200 Subject: [PATCH] Add web CI (#473) --- .github/workflows/web.yaml | 31 +++++++++++++++++++++++++++++++ web/package.json | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/web.yaml diff --git a/.github/workflows/web.yaml b/.github/workflows/web.yaml new file mode 100644 index 00000000..cc414c40 --- /dev/null +++ b/.github/workflows/web.yaml @@ -0,0 +1,31 @@ +name: Web CI + +on: + push: + branches: [ main ] + paths: + - '.github/**' + - 'web/**' + pull_request: + paths: + - '.github/**' + - 'web/**' + +jobs: + test: + runs-on: ubuntu-latest + defaults: + run: + working-directory: web + + steps: + - uses: actions/checkout@v5 + + - uses: actions/setup-node@v4 + with: + node-version: '22' + + - run: npm install + - run: npm run check + continue-on-error: true + - run: npm run test:unit \ No newline at end of file diff --git a/web/package.json b/web/package.json index b801b439..62047312 100644 --- a/web/package.json +++ b/web/package.json @@ -10,7 +10,7 @@ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "test:integration": "playwright test", - "test:unit": "vitest" + "test:unit": "vitest --passWithNoTests" }, "devDependencies": { "@playwright/test": "^1.42.1",