Skip to content

Commit

Permalink
add postgres database
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanelnajjar committed Sep 2, 2023
1 parent 6891068 commit 2f0d1aa
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/producer-tests.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,30 @@ on:
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres

env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres

options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

env:
SHOPIFY_ACCESS_TOKEN: 123
SHOPIFY_API_KEY: 123
SHOPIFY_API_SECRET: 123
HOST: somehost
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres

strategy:
matrix:
node-version: [18.x]
Expand All @@ -27,14 +45,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Use POSTGRES
uses: docker://postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
- run: yarn
- run: cd web && yarn
- run: yarn test

0 comments on commit 2f0d1aa

Please sign in to comment.