fixing deployment actions
Some checks failed
Deploy / Check & Build (push) Failing after 10s
Deploy / Deploy to Production (push) Has been skipped

This commit is contained in:
RaineAllDay
2026-03-18 04:53:17 -06:00
parent 5db9a81355
commit 7ff80e3a08
3 changed files with 18 additions and 37 deletions

View File

@@ -1,13 +1,13 @@
# .gitea/workflows/ci.yml
# Runs on every push and pull request.
# Checks syntax, imports, and that the build succeeds.
# Runs on every push and pull request (except main, which uses deploy.yml).
# Designed for a host-mode act_runner on Ubuntu with Node 20 already installed.
name: CI
on:
push:
branches-ignore:
- main # main is handled by deploy.yml
- main
pull_request:
jobs:
@@ -17,33 +17,25 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Verify Node.js
run: node --version && npm --version
- name: Install dependencies
run: npm ci
# ── Syntax check all server-side JS files ────────────────────────────
- name: JS syntax check
run: |
find src -name "*.js" | xargs -I{} node --check {}
echo "✓ JS syntax OK"
# ── Svelte component check ────────────────────────────────────────────
- name: Svelte check
run: npx svelte-check --tsconfig ./jsconfig.json 2>&1 | tail -5
continue-on-error: false
run: npx svelte-check 2>&1 | tail -10
# ── Full Vite build (catches broken imports + SSR errors) ─────────────
- name: Build
run: npm run build
env:
# Provide dummy env vars so the build doesn't fail on missing config
DATABASE_URL: ./dummy.db
RATE_LIMIT_PUBLISH: '5'
RATE_LIMIT_READ: '100'