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",