Skip to content

chore: move railway.toml to deploy/ directory (#3) #9

chore: move railway.toml to deploy/ directory (#3)

chore: move railway.toml to deploy/ directory (#3) #9

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
postgres:
image: pgvector/pgvector:pg17
env:
POSTGRES_USER: atomicmem
POSTGRES_PASSWORD: atomicmem
POSTGRES_DB: atomicmem_test
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U atomicmem"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
DATABASE_URL: postgresql://atomicmem:atomicmem@localhost:5432/atomicmem_test
OPENAI_API_KEY: test-placeholder
EMBEDDING_DIMENSIONS: 1024
PORT: 3051
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Code health (fallow)
run: npx fallow --no-cache
- name: Run tests
run: npm test