Skip to content

Commit

Permalink
use heroku postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed May 10, 2021
1 parent 2fe7987 commit 4bfcc76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 32 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,7 @@ jobs:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
node-version: [12.x, 14.x]
runs-on: ${{ matrix.os }}
services:
postgres:
image: postgres
env:
# https://hub.docker.com/_/postgres
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5700:5432

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,6 @@ jobs:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
node-version: [12.x, 14.x]
runs-on: ${{ matrix.os }}
services:
postgres:
image: postgres
env:
# https://hub.docker.com/_/postgres
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5700:5432

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ it('When bundled custom scalars are used the project type checks and generates e
await prisma.foo.create({
data: {
id: 'foo1',
someDateTimeField: new Date(),
someDateTimeField: new Date("2021-05-10T20:42:46.609Z"),
someJsonField: JSON.stringify({}),
someEnumA: 'alpha',
bar: {
Expand Down Expand Up @@ -262,7 +262,7 @@ it('When bundled custom scalars are used the project type checks and generates e
{
filePath: `.env`,
content: endent`
DB_URL="postgres://prisma:prisma@localhost:5700"
DB_URL="postgres://bcnfshogmxsukp:e31b6ddc8b9d85f8964b6671e4b578c58f0d13e15f637513207d44268eabc950@ec2-54-196-33-23.compute-1.amazonaws.com:5432/d17vadgam0dtao"
NO_PEER_DEPENDENCY_CHECK="true"
`,
},
Expand Down Expand Up @@ -335,9 +335,9 @@ it('When bundled custom scalars are used the project type checks and generates e
query {
bars {
foo {
someEnumA
JsonManually
DateTimeManually
someEnumA
someDateTimeField
}
}
Expand Down

0 comments on commit 4bfcc76

Please sign in to comment.