-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (45 loc) · 1.74 KB
/
docker-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: 'dhis2-docker test'
on: push
jobs:
test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
container:
image: node:14-buster
services:
postgres:
image: dhis2/postgres-contrib
env:
POSTGRES_USER: apphub
POSTGRES_PASSWORD: apphub
POSTGRES_DB: apphub
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Install deps for tests
run: yarn install --frozen-lockfile
- name: Build frontend/client
run: yarn build
- name: Run client tests
run: yarn test:client
- name: Run server tests
run: yarn test:server
env:
RDS_HOSTNAME: postgres
RDS_USERNAME: apphub
RDS_PASSWORD: apphub
RDS_DB_NAME: apphub
RDS_DB_PORT: 5432
AUTH_STRATEGY: jwt
AUTH0_AUDIENCE: apps.dhis2.org/api'
AUTH0_DOMAIN: dhis2.eu.auth0.com/
AUTH0_ISSUER: https://dhis2.eu.auth0.com/
AUTH0_ALG: RS256
AUTH0_JWKS_URI: https://dhis2.eu.auth0.com/.well-known/jwks.json
AUTH0_MANAGEMENT_AUDIENCE: https://dhis2.eu.auth0.com/api/v2/
AUTH0_MANAGEMENT_SECRET: ${{ secrets.AUTH0_MANAGEMENT_SECRET }}
AUTH0_MANAGEMENT_CLIENT_ID: K4fVnj443Sqid3Xl9yBVTYw9BEjPx3gl