Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
"features": {
"ghcr.io/devcontainers/features/git-lfs:1": {
"autoPull": true,
"version": "latest"
},
"ghcr.io/itsmechlark/features/postgresql:1": {
"version": "latest"
}
},

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pnpm install"
}
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: weekly

target-branch: dev

2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: abc123
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dist
*.db
*.db-journal
*.tgz
.pnpm-store
2 changes: 1 addition & 1 deletion packages/runtime/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const TEST_PG_CONFIG = {
? parseInt(process.env['TEST_PG_PORT'])
: 5432,
user: process.env['TEST_PG_USER'] ?? 'postgres',
password: process.env['TEST_PG_PASSWORD'] ?? 'abc123',
password: process.env['TEST_PG_PASSWORD'] ?? 'postgres',
};

export async function makePostgresClient<Schema extends PostgresSchema>(
Expand Down
2 changes: 1 addition & 1 deletion packages/testtools/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ datasource db {
return `
datasource db {
provider = 'postgresql'
url = 'postgres://postgres:abc123@localhost:5432/${dbName}'
url = 'postgres://postgres:postgres@localhost:5432/${dbName}'
}
`;
})
Expand Down