Files
etcprs/.gitea/workflows/ci.yml
RaineAllDay f28b8f06c6
Some checks failed
Deploy / Check & Build (push) Successful in 1m28s
Deploy / Deploy to Production (push) Has been cancelled
again... fixing deployment actions
2026-03-18 04:55:29 -06:00

45 lines
1.0 KiB
YAML

# .gitea/workflows/ci.yml
# Runs on every push and pull request (except main, which uses deploy.yml).
# Uses no external actions — all steps are plain shell commands.
name: CI
on:
push:
branches-ignore:
- main
pull_request:
jobs:
build:
name: Check & Build
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
git checkout ${{ gitea.sha }}
- name: Verify Node.js
run: node --version && npm --version
- name: Install dependencies
run: npm ci
- name: JS syntax check
run: |
find src -name "*.js" | xargs -I{} node --check {}
echo "✓ JS syntax OK"
- name: Svelte check
run: npx svelte-check 2>&1 | tail -10
- name: Build
run: npm run build
env:
DATABASE_URL: ./dummy.db
RATE_LIMIT_PUBLISH: '5'
RATE_LIMIT_READ: '100'
PUBLIC_BASE_URL: 'https://example.com'