Update gitignore
This commit is contained in:
commit
9e0ddb8182
32 changed files with 3863 additions and 0 deletions
36
.github/workflows/ci.yml
vendored
Normal file
36
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue