From d8036a423e072f294405245b21c42a24eed16db5 Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Tue, 18 Feb 2025 18:50:22 +0100 Subject: [PATCH] chore: postgres logs --- .github/workflows/postgres-test.yml | 56 +++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/.github/workflows/postgres-test.yml b/.github/workflows/postgres-test.yml index d694a845..8c3b1d00 100644 --- a/.github/workflows/postgres-test.yml +++ b/.github/workflows/postgres-test.yml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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 }}"