-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 890 Bytes
/
ci.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
name: Ci
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
ci:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pgpass
POSTGRES_DB: pgdb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
- name: Vet
run: make vet
- name: Test
run: make test
env:
TEST_PG_DNS: postgres://pguser:pgpass@localhost:5432/pgdb