diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c96d24f..bd77350 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 @@ -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 diff --git a/ci/test-blueprint.sh b/ci/test-blueprint.sh index 87aa8a1..706482d 100755 --- a/ci/test-blueprint.sh +++ b/ci/test-blueprint.sh @@ -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