-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.28 KB
/
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
name: "Test"
on: push
jobs:
test:
runs-on: ubuntu-latest
container: golang:buster
env:
DB_HOST: postgres
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_NAME: postgres
DB_PORT: 5432
POLYGON_RPC: ${{ secrets.POLYGON_RPC }}
MNEMONIC: ${{ secrets.MNEMONIC }}
NETSEPIO_CONTRACT_ADDRESS: ${{ secrets.NETSEPIO_CONTRACT_ADDRESS }}
PASETO_PRIVATE_KEY: ${{ secrets.PASETO_PRIVATE_KEY }}
PASETO_EXPIRATION: 48h
GRAPH_API: ${{ secrets.GRAPH_API }}
VOTER_EULA: TODO VOTER EULA
AUTH_EULA: TODO AUTH EULA
ALLOWED_ORIGIN: "*"
SIGNED_BY: "NetSepio"
APP_NAME: NetSepio
IPFS_NODE_URL: https://ipfs.infura.io:5001
APP_PORT: 3000
GIN_MODE: test
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- uses: actions/checkout@v2
- name: Build
run: go build -v ./...
- name: Test
run: LOAD_CONFIG_FILE=false gotestsum