36 lines
728 B
YAML
36 lines
728 B
YAML
name: Commit
|
|
|
|
on:
|
|
push:
|
|
# only trigger on branches, not on tags
|
|
branches: '**'
|
|
|
|
jobs:
|
|
# Job 1: Lint and Test (Type Check)
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 25
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Lint (Prettier & ESLint)
|
|
run: pnpm lint
|
|
|
|
- name: Type Check (Svelte Check)
|
|
# Based on your package.json "check" script
|
|
run: pnpm check
|