mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-21 14:23:48 +00:00
1c8b0ca194
Runs on push/PR to main. Also adds skipLibCheck to tsconfig to silence pre-existing errors in vite/vitest declaration files that don't affect the Worker build. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
564 B
YAML
31 lines
564 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
|
|
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
|
|
- run: npm ci
|
|
|
|
- name: Format check
|
|
run: npx prettier --check '**/*.{js,ts,css,json,md}'
|
|
|
|
- name: Type check
|
|
run: npm run typecheck
|
|
|
|
- name: Test
|
|
run: npm test
|