Skip to content

Create events REST endpoint #765

Create events REST endpoint

Create events REST endpoint #765

Workflow file for this run

name: Node checks
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
services:
redis:
image: redis
options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 6379:6379
postgres:
# Use a Postgres image that has wal2json installed
image: debezium/postgres:11
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node and cache
uses: ./.github/actions/node-and-cache
with:
node-version: ${{ matrix.node-version }}
- name: Install pg_dump
uses: ./.github/actions/install-pg-dump
- name: Setup and build
run: |
cp .env.ci .env
yarn install
CONFIRM_DROP=1 yarn setup
yarn build
- name: Lint, test and depcheck
run: |
yarn lint
# Got errors about all replication slots being in use
# without --runInBand. debezium/postgres image is configured
# by default to have only a single replication slot.
yarn test --ci --runInBand
yarn depcheck