Skip to content

HA: multiple instance replica support #1625

HA: multiple instance replica support

HA: multiple instance replica support #1625

Workflow file for this run

name: Test Postgress
on:
push:
branches: [ main ]
paths:
- 'forge/**'
- 'test/unit/**'
- 'test/system/**'
- 'package.json'
pull_request:
paths:
- 'forge/**'
- 'test/unit/**'
- 'test/system/**'
- 'package.json'
- '.github/workflows/test-postgresql.yml'
jobs:
runner-job:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_PASSWORD: secret
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
-m 3GB
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm install
- name: Build the forge
run: npm run build
- name: Test the forge (with PostgreSQL)
env:
FF_TEST_DB_POSTGRES: true
FF_TEST_DB_POSTGRES_HOST: localhost
FF_TEST_DB_POSTGRES_PORT: 5432
FF_TEST_DB_POSTGRES_USER: postgres
FF_TEST_DB_POSTGRES_PASSWORD: secret
FF_TEST_DB_POSTGRES_DATABASE: flowforge
run: npm run test