Update all the things #768
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |