Skip to content

Merge pull request #58 from zitnik/customtype-nil-replacement #23

Merge pull request #58 from zitnik/customtype-nil-replacement

Merge pull request #58 from zitnik/customtype-nil-replacement #23

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ 1.14, 1.15 ]
services:
postgres:
image: postgres:11-alpine
ports:
- 8765:5432
env:
POSTGRES_DB: test
POSTGRES_USER: test
POSTGRES_PASSWORD: test
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Run tests
run: go test -v -covermode=count -coverprofile=c.out ./...
- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: c.out