Skip to content

DB migrations: embed migrations files into the binary #25

DB migrations: embed migrations files into the binary

DB migrations: embed migrations files into the binary #25

Workflow file for this run

on:
push:
branches : [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Start pg container
run: docker run -p 5432:5432 --name appclacks-pg -e POSTGRES_DB=appclacks -e POSTGRES_USER=appclacks -e POSTGRES_PASSWORD=appclacks -d postgres:14.4
- name: Run testing
run: go test -race -v ./...
- name: stop container
run: docker stop appclacks-pg