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 dcd7f29 commit f80231cCopy full SHA for f80231c
.github/workflows/build.yml
@@ -1,9 +1,22 @@
1
name: Build and Test
2
-on: [push]
+on:
3
+ push:
4
+ branches:
5
+ - master
6
jobs:
7
test:
8
name: Test
9
runs-on: ubuntu-latest
10
+ services:
11
+ postgres:
12
+ image: postgres:11.5
13
+ env:
14
+ POSTGRES_USER: postgres
15
+ POSTGRES_PASSWORD: postgres
16
+ POSTGRES_DB: postgres
17
+ ports:
18
+ - 5432/tcp
19
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
20
steps:
21
- name: Set up Golang
22
uses: actions/setup-go@v1
@@ -15,3 +28,5 @@ jobs:
28
29
- name: Run unit tests
30
run: make test
31
32
+ CTF_DB_DSN: 'postgres://postgres:postgres@localhost:5432/postgres_test?sslmode=disable'
.github/workflows/build2.yml
.travis.yml
0 commit comments