We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f03b957 commit 67f6edcCopy full SHA for 67f6edc
.github/workflows/push.yml
@@ -30,6 +30,17 @@ jobs:
30
name: Test
31
runs-on: ubuntu-latest
32
needs: setup
33
+ services:
34
+ postgres:
35
+ image: postgres:10.8
36
+ env:
37
+ POSTGRES_USER: postgres
38
+ POSTGRES_PASSWORD: postgres
39
+ POSTGRES_DB: postgres
40
+ ports:
41
+ - 5432:5432
42
+ # needed because the postgres container does not provide a healthcheck
43
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
44
steps:
45
- name: Checkout
46
uses: actions/checkout@v2
@@ -50,6 +61,11 @@ jobs:
50
61
- name: Lint
51
62
run: yarn lint
52
63
- name: Test
64
65
+ NODE_ENV: test
66
67
+ POSTGRES_DATABASE: postgres
68
53
69
run: yarn test
54
70
55
71
publish:
0 commit comments