Files
aktiteil/.gitea/workflows/commit.yaml
T
2026-04-05 10:32:22 +02:00

42 lines
845 B
YAML

name: Commit
on:
push:
# only trigger on branches, not on tags
branches:
- 'main'
- 'dev'
jobs:
# Job 1: Lint and Test (Type Check)
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
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
- name: Run Tests (Vitest)
run: pnpm run test