Skip to content

Commit

Permalink
run migrations in the same step as the test
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Dec 28, 2023
1 parent 169f049 commit 379b4a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
- name: Setup
run: cp test.env .env && touch proxy.env

- name: Migration
run: docker-compose run --rm test bash -c "goose -dir migrations postgres postgres://keygo:keygo@testdb:5432/keygo?sslmode=disable up"

- name: Test
run: docker compose run --rm test
run: >-
docker-compose run --rm test bash -c "goose -dir migrations postgres postgres://keygo:keygo@testdb:5432/keygo?sslmode=disable up" &&
docker compose run --rm test

0 comments on commit 379b4a8

Please sign in to comment.