increase max conns to 50, update release code #10
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:15 | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Install dependencies | |
run: go mod download | |
- name: Install golang-migrate | |
run: go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest | |
- name: Run migrations and seed data | |
env: | |
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable | |
run: | | |
make migrate | |
make seed | |
- name: Run tests | |
env: | |
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable | |
run: make test |