chore: add pipeline
This commit is contained in:
35
.gitea/workflows/commit.yaml
Normal file
35
.gitea/workflows/commit.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
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
|
||||
Reference in New Issue
Block a user