Skip to content

fix: test case

fix: test case #210

Workflow file for this run

name: Unit Tests
on: push
jobs:
# Label of the runner job
runner-job:
# You must use a Linux environment when using service containers or container jobs
runs-on: ubuntu-latest
services:
postgres:
# Docker Hub image
image: postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 54322:5432
steps:
- uses: actions/checkout@v2
- name: set up go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: sqlc generate
run: make sqlc
- name: build
run: make build
- name: run tests
run: make test