Skip to content

Commit

Permalink
chore: postgres logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Feb 18, 2025
1 parent 0ecfd1f commit d8036a4
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/postgres-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ jobs:
- name: Integration Test
run: pnpm run migrate up -m test/migrations && pnpm run migrate down 0 -m test/migrations --timestamps

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

config-2-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -191,6 +195,10 @@ jobs:
- name: Integration Test for URL object config
run: pnpm run migrate up -m test/migrations && pnpm run migrate down 0 -m test/migrations --timestamps

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

dotenv-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -246,6 +254,10 @@ jobs:
- name: Integration Test
run: pnpm run migrate up -m test/migrations && pnpm run migrate down 0 -m test/migrations --timestamps

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

dotenv-expand-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -304,6 +316,10 @@ jobs:
- name: Integration Test
run: pnpm run migrate up -m test/migrations && pnpm run migrate down 0 -m test/migrations --timestamps

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

password-1-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -356,6 +372,10 @@ jobs:
env:
DATABASE_URL: postgres://ubuntu:123456abcdefghABCDEFGH~\`\!$%^\&*-_=+{}[]\(\)\<\>,.\;:\"\'\|\\@localhost:5432/integration_test

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

password-2-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -420,6 +440,10 @@ jobs:
- name: Integration Test
run: pnpm run migrate up -m test/migrations && pnpm run migrate down 0 -m test/migrations --timestamps

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

env-vars-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -473,6 +497,10 @@ jobs:
PGPASSWORD: 123456abcdefghABCDEFGH~\`\!@#$%^\&*-_=+{}[]\(\)\<\>,.\;:\"\'?\|/\\
PGDATABASE: integration_test

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

schema-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -525,6 +553,10 @@ jobs:
DATABASE_URL: postgres://ubuntu:ubuntu@localhost:5432/integration_test
SCHEMA: myschema

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

schemas-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -577,6 +609,10 @@ jobs:
DATABASE_URL: postgres://ubuntu:ubuntu@localhost:5432/integration_test
SCHEMA: myschema

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

typescript-migration-via-ts-node-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -628,6 +664,10 @@ jobs:
env:
DATABASE_URL: postgres://ubuntu:ubuntu@localhost:5432/integration_test

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

typescript-migration-via-tsx-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -679,6 +719,10 @@ jobs:
env:
DATABASE_URL: postgres://ubuntu:ubuntu@localhost:5432/integration_test

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

typescript-customrunner-url-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -730,6 +774,10 @@ jobs:
env:
DATABASE_URL: postgres://ubuntu:ubuntu@localhost:5432/integration_test

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

typescript-customrunner-client-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -781,6 +829,10 @@ jobs:
env:
DATABASE_URL: postgres://ubuntu:ubuntu@localhost:5432/integration_test

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

typescript-customrunner-undef-count-test:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -831,3 +883,7 @@ jobs:
run: node --experimental-specifier-resolution=node --loader ts-node/esm test/ts/customRunnerUndefCount.ts
env:
DATABASE_URL: postgres://ubuntu:ubuntu@localhost:5432/integration_test

- name: Postgres logs
if: always()
run: docker logs "${{ job.services.postgres.id }}"

0 comments on commit d8036a4

Please sign in to comment.