Skip to content

Commit

Permalink
ci,push: roll back db after blueprint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Dec 26, 2024
1 parent 6a9e380 commit bfa668f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- name: Run tests for standard blueprint
run: ci/test-blueprint.sh standard
env:
DATABASE_URL: postgres://example@127.0.0.1:${{ job.services.postgres.postgres[5432] }}/example
STANDARD_EXAMPLE_TEST_DB_HOST: 127.0.0.1
STANDARD_EXAMPLE_TEST_DB_PORT: ${{ job.services.postgres.ports[5432] }}
STANDARD_EXAMPLE_TEST_DB_NAME: example
Expand All @@ -50,6 +51,7 @@ jobs:
- name: Run tests for SaaS blueprint
run: ci/test-blueprint.sh saas
env:
DATABASE_URL: postgres://example@127.0.0.1:${{ job.services.postgres.postgres[5432] }}/example
SAAS_EXAMPLE_TEST_DB_HOST: 127.0.0.1
SAAS_EXAMPLE_TEST_DB_PORT: ${{ job.services.postgres.ports[5432] }}
SAAS_EXAMPLE_TEST_DB_NAME: example
Expand Down
3 changes: 3 additions & 0 deletions ci/test-blueprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ raco pkg install --batch --auto "$application/" "$application-tests/"

log "Running example app tests..."
raco test "$application-tests/"

log "Rolling back migrations..."
raco north rollback -fu "$DATABASE_URL" base

0 comments on commit bfa668f

Please sign in to comment.