feat: create wish route #215
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |