Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm

- run: npm ci

- name: Run tests
run: npm test
env:
NODE_ENV: test
JWT_SECRET: ci-test-jwt-secret-not-real
SESSION_SECRET: ci-test-session-secret-not-real
ADMIN_USERNAME: ci-test-admin
ADMIN_PASSWORD: ci-test-password
ALLOWED_ORIGINS: http://localhost:3000