Skip to content

updated seed data

updated seed data #3

Workflow file for this run

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