heystreamer/.github/workflows/ci.yml
Bashy 6c7facadce
Some checks failed
CI / check (push) Has been cancelled
rework
2026-04-26 23:00:55 +03:00

36 lines
877 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
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: Syntax check
run: node --check src/app.js src/server.js src/db.js src/eventsub.js src/dispatch.js src/ws.js src/cooldowns.js src/routers/*.js
- name: Import check
run: node -e "require('./src/app')"
env:
TWITCH_CLIENT_ID: ci-placeholder
TWITCH_CLIENT_SECRET: ci-placeholder
TWITCH_REDIRECT_URI: http://localhost:3000/auth/callback
SECRET_KEY: ci-test-secret-not-real
APP_BASE_URL: http://localhost:3000
DB_PATH: ./test.db
PORT: 3000