Adding postgres example

This commit is contained in:
Chris Patterson
2019-08-15 09:23:28 -04:00
parent 3ac9cff9f2
commit efa6307ac2
5 changed files with 297 additions and 0 deletions

28
.github/workflows/postgres-service.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:10.16-jessie
services:
postgres:
image: postgres:10.8
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
redis:
image: redis
ports:
- 6379:6379
steps:
- uses: actions/checkout@mv1
- run: node client.js
working-directory: ./postgres/