message: use postgres setup from hub workflow in main ci
diff: @@ -8,7 +8,27 @@ jobs:
  test:
  name: Build & Lint & Test
  runs-on: ubuntu-latest
  +
  + services:
  + postgres:
  + image: postgres:13
  + env:
  + POSTGRES_DB: postgres
  + POSTGRES_PASSWORD: postgres
  + POSTGRES_USER: postgres
  + ports:
  + - 5432:5432
  + # Set health checks to wait until postgres has started
  + options: >-
  + --health-cmd pg_isready
  + --health-interval 10s
  + --health-timeout 5s
  + --health-retries 5
  + -v /var/run/postgresql/:/var/run/postgresql
  +
  steps:
  + - name: Create database
  + run: sudo -u postgres createdb hub_test
  - uses: actions/checkout@v2
  with:
  fetch-depth: 0
  @@ -22,6 +42,7 @@ jobs:
  ${{ runner.os }}-yarn-
  - run: yarn global add lerna
  - run: yarn --prefer-offline
  + - run: yarn test:hub:preparedb
  - run: yarn lint
  - run: yarn test
  