-
Notifications
You must be signed in to change notification settings - Fork 28
49 lines (42 loc) · 1.16 KB
/
integration-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
# name of the action
name: integration-test
# trigger on pull_request events that modify this file or any database files
on:
pull_request:
paths:
- '.github/workflows/integration-test.yml'
- 'database/**'
# pipeline to execute
jobs:
database:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15-alpine@sha256:8bc3c893342c766481df5fde58fab6f1a1115b94eb56778126163305243e9709
env:
POSTGRES_DB: vela
POSTGRES_PASSWORD: notARealPassword12345
POSTGRES_USER: vela
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
POSTGRES_ADDR: postgres://vela:notARealPassword12345@localhost:5432/vela
SQLITE_ADDR: vela.db
steps:
- name: clone
uses: actions/checkout@v3
- name: install go
uses: actions/setup-go@v4
with:
# use version from go.mod file
go-version-file: 'go.mod'
cache: true
check-latest: true
- name: test
run: |
make integration-test