Files
etcprs/.gitea/workflows/ci.yml
RaineAllDay 7ff80e3a08
Some checks failed
Deploy / Check & Build (push) Failing after 10s
Deploy / Deploy to Production (push) Has been skipped
fixing deployment actions
2026-03-18 04:53:17 -06:00

43 lines
949 B
YAML

# .gitea/workflows/ci.yml
# 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
pull_request:
jobs:
build:
name: Check & Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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'