Skip to content

Commit

Permalink
ci: test db migration
Browse files Browse the repository at this point in the history
  • Loading branch information
crazybolillo committed Jul 31, 2024
1 parent 19aa651 commit 360784b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,33 @@ jobs:
run: sqlc vet
- name: Diff
run: sqlc diff
dbmate:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: pbx
POSTGRES_DB: asterisk
POSTGRES_PASSWORD: pbx
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: postgres://pbx:[email protected]:5432/asterisk?sslmode=disable
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dbmate
run: npm install dbmate
- name: Run migrations
run: npx dbmate up
docker:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 360784b

Please sign in to comment.