Skip to content

Merge pull request #246 from commonknowledge/feat/jotai #114

Merge pull request #246 from commonknowledge/feat/jotai

Merge pull request #246 from commonknowledge/feat/jotai #114

Workflow file for this run

name: Test
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
environment: Testing
timeout-minutes: 15
services:
postgres:
image: postgis/postgis:16-3.5
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres_test
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
redis:
image: redis:7
ports:
- 6379:6379
options: >-
--health-cmd="redis-cli ping"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres_test
REDIS_URL: redis://localhost:6379
BWS_ACCESS_TOKEN: ${{ secrets.BWS_ACCESS_TOKEN }}
BWS_TEST_CREDENTIALS_SECRET: ${{ secrets.BWS_TEST_CREDENTIALS_SECRET }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test