forked from acoshift/pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 824 Bytes
/
test.yaml
File metadata and controls
33 lines (33 loc) · 824 Bytes
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
name: Test
on:
push:
pull_request:
jobs:
runner-job:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
strategy:
matrix:
go: ['1.22', '1.23', '1.24']
name: Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- run: go get -t -v ./...
- run: go test -coverprofile=coverage.txt -covermode=atomic ./...
env:
DB_URL: postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable
- uses: codecov/codecov-action@v3