Add tests, templates, and Gitea Actions workflows
Some checks failed
/ test (push) Has been cancelled
/ lint (push) Has been cancelled

This commit is contained in:
2026-02-03 07:58:13 +00:00
parent cbcdf3aa04
commit 056a6f070e

44
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,44 @@
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Type check
run: npm run typecheck
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint