Skip to content

Replace dual-bar with queue bridge for flash-free bottom bar #491

Replace dual-bar with queue bridge for flash-free bottom bar

Replace dual-bar with queue bridge for flash-free bottom bar #491

Workflow file for this run

name: Backend Integration Tests
on:
push:
branches: [main]
paths:
- 'packages/backend/**'
- 'packages/shared-schema/**'
- 'packages/db/**'
- '.github/workflows/backend-tests.yml'
pull_request:
paths:
- 'packages/backend/**'
- 'packages/shared-schema/**'
- 'packages/db/**'
- '.github/workflows/backend-tests.yml'
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: ghcr.io/marcodejongh/boardsesh-postgres-postgis:latest
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: boardsesh_backend_test
ports:
- 5433:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:7-alpine
ports:
- 6380:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build shared-schema
run: npm run build --workspace=@boardsesh/shared-schema
- name: Build db package
run: npm run build --workspace=@boardsesh/db
- name: Run backend integration tests
run: npm run test:run --workspace=boardsesh-backend
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5433/boardsesh_backend_test
REDIS_URL: redis://localhost:6380