Skip to content

Commit c002070

Browse files
authored
ci: update uri for github actions (#5469)
1 parent 8720baa commit c002070

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

.github/workflows/test.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,13 @@ jobs:
149149
CI: true
150150
SKIP_GIT: true
151151
GITHUB_CONTEXT: ${{ toJson(github) }}
152-
TEST_POSTGRES_BASE_URI: postgres://prisma:prisma@localhost:5432
153-
TEST_MYSQL_BASE_URI: mysql://root:root@localhost:3306
154-
TEST_MARIADB_BASE_URI: mysql://root:root@localhost:4306
155-
TEST_POSTGRES_URI: postgres://prisma:prisma@localhost:5432/tests
156-
TEST_MYSQL_URI: mysql://root:root@localhost:3306/tests
157-
TEST_MARIADB_URI: mysql://root:root@localhost:4306/tests
158-
TEST_MSSQL_URI: mssql://SA:Pr1sm4_Pr1sm4@localhost:1433/master
152+
TEST_POSTGRES_BASE_URI: postgres://prisma:prisma@127.0.0.1:5432
153+
TEST_MYSQL_BASE_URI: mysql://root:root@127.0.0.1:3306
154+
TEST_MARIADB_BASE_URI: mysql://root:root@127.0.0.1:4306
155+
TEST_POSTGRES_URI: postgres://prisma:prisma@127.0.0.1:5432/tests
156+
TEST_MYSQL_URI: mysql://root:root@127.0.0.1:3306/tests
157+
TEST_MARIADB_URI: mysql://root:root@127.0.0.1:4306/tests
158+
TEST_MSSQL_URI: mssql://SA:Pr1sm4_Pr1sm4@127.0.0.1:1433/master
159159

160160
#
161161
# CLI-COMMANDS
@@ -252,12 +252,12 @@ jobs:
252252
CI: true
253253
SKIP_GIT: true
254254
GITHUB_CONTEXT: ${{ toJson(github) }}
255-
TEST_POSTGRES_URI: postgres://prisma:prisma@localhost:5432/tests
256-
TEST_POSTGRES_ISOLATED_URI: postgres://prisma:prisma@localhost:5435/tests
257-
TEST_MYSQL_URI: mysql://root:root@localhost:3306/tests
258-
TEST_MYSQL_ISOLATED_URI: mysql://root:root@localhost:3307/tests
259-
TEST_MSSQL_URI: mssql://SA:Pr1sm4_Pr1sm4@localhost:1433/master
260-
TEST_MSSQL_JDBC_URI: sqlserver://localhost:1433;database=master;user=SA;password=Pr1sm4_Pr1sm4;trustServerCertificate=true;encrypt=DANGER_PLAINTEXT
255+
TEST_POSTGRES_URI: postgres://prisma:prisma@127.0.0.1:5432/tests
256+
TEST_POSTGRES_ISOLATED_URI: postgres://prisma:prisma@127.0.0.1:5435/tests
257+
TEST_MYSQL_URI: mysql://root:root@127.0.0.1:3306/tests
258+
TEST_MYSQL_ISOLATED_URI: mysql://root:root@127.0.0.1:3307/tests
259+
TEST_MSSQL_URI: mssql://SA:Pr1sm4_Pr1sm4@127.0.0.1:1433/master
260+
TEST_MSSQL_JDBC_URI: sqlserver://127.0.0.1:1433;database=master;user=SA;password=Pr1sm4_Pr1sm4;trustServerCertificate=true;encrypt=DANGER_PLAINTEXT
261261

262262
- name: Upload coverage report
263263
working-directory: src/packages/client
@@ -415,8 +415,8 @@ jobs:
415415
CI: true
416416
SKIP_GIT: true
417417
GITHUB_CONTEXT: ${{ toJson(github) }}
418-
TEST_POSTGRES_URI: postgres://prisma:prisma@localhost:5432/tests
419-
TEST_POSTGRES_URI_MIGRATE: postgres://prisma:prisma@localhost:5432/tests-migrate
418+
TEST_POSTGRES_URI: postgres://prisma:prisma@127.0.0.1:5432/tests
419+
TEST_POSTGRES_URI_MIGRATE: postgres://prisma:prisma@127.0.0.1:5432/tests-migrate
420420

421421
- name: Upload coverage report
422422
if: ${{ !contains(github.actor, 'bot') && matrix.os == 'ubuntu-18.04' }}

src/packages/migrate/src/__tests__/MigrateDev.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -597,11 +597,11 @@ describe('sqlite', () => {
597597

598598
await expect(result).rejects.toMatchInlineSnapshot(`
599599
600-
⚠️ We found changes that cannot be executed:
600+
⚠️ We found changes that cannot be executed:
601601
602-
• Step 0 Made the column \`fullname\` on table \`Blog\` required, but there are 1 existing NULL values.
602+
• Step 0 Made the column \`fullname\` on table \`Blog\` required, but there are 1 existing NULL values.
603603
604-
`)
604+
`)
605605
expect(ctx.mocked['console.info'].mock.calls.join('\n'))
606606
.toMatchInlineSnapshot(`
607607
Prisma schema loaded from prisma/schema.prisma
@@ -660,10 +660,10 @@ describe('sqlite', () => {
660660
expect(ctx.mocked['console.log'].mock.calls.join('\n'))
661661
.toMatchInlineSnapshot(`
662662
663-
⚠️ There will be data loss when applying the migration:
663+
⚠️ There will be data loss when applying the migration:
664664
665-
• You are about to drop the \`Blog\` table, which is not empty (2 rows).
666-
`)
665+
• You are about to drop the \`Blog\` table, which is not empty (2 rows).
666+
`)
667667
expect(ctx.mocked['console.error'].mock.calls).toMatchSnapshot()
668668
})
669669

@@ -684,10 +684,10 @@ describe('sqlite', () => {
684684
expect(ctx.mocked['console.log'].mock.calls.join('\n'))
685685
.toMatchInlineSnapshot(`
686686
687-
⚠️ There will be data loss when applying the migration:
687+
⚠️ There will be data loss when applying the migration:
688688
689-
• You are about to drop the \`Blog\` table, which is not empty (2 rows).
690-
`)
689+
• You are about to drop the \`Blog\` table, which is not empty (2 rows).
690+
`)
691691
expect(ctx.mocked['console.error'].mock.calls).toMatchSnapshot()
692692
})
693693

@@ -852,7 +852,7 @@ describe('postgresql', () => {
852852
const SetupParams: SetupParams = {
853853
connectionString:
854854
process.env.TEST_POSTGRES_URI_MIGRATE ||
855-
'postgres://prisma:prisma@localhost:5432/tests-migrate',
855+
'postgres://prisma:prisma@127.0.0.1:5432/tests-migrate',
856856
dirname: './fixtures',
857857
}
858858

src/packages/migrate/src/__tests__/__helpers__/snapshotSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function normalizeMigrateTimestamps(str) {
55
}
66

77
function normalizeDbUrl(str) {
8-
return str.replace(/(localhost|postgres):\d+/g, 'localhost:5432')
8+
return str.replace(/(127.0.0.1|localhost|postgres):\d+/g, 'localhost:5432')
99
}
1010

1111
function normalizeRustError(str) {

0 commit comments

Comments
 (0)