Skip to content

Commit 1cda530

Browse files
authored
chore: setup dev container (#25)
1 parent d2393b2 commit 1cda530

File tree

6 files changed

+43
-3
lines changed

6 files changed

+43
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+
{
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/git-lfs:1": {
9+
"autoPull": true,
10+
"version": "latest"
11+
},
12+
"ghcr.io/itsmechlark/features/postgresql:1": {
13+
"version": "latest"
14+
}
15+
},
16+
17+
// Use 'postCreateCommand' to run commands after the container is created.
18+
"postCreateCommand": "pnpm install"
19+
}

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly
13+
14+
- package-ecosystem: "npm"
15+
directory: "/"
16+
schedule:
17+
interval: weekly
18+
19+
target-branch: dev
20+

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
postgres:
1818
image: postgres
1919
env:
20-
POSTGRES_PASSWORD: abc123
20+
POSTGRES_PASSWORD: postgres
2121
# Set health checks to wait until postgres has started
2222
options: >-
2323
--health-cmd pg_isready

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dist
66
*.db
77
*.db-journal
88
*.tgz
9+
.pnpm-store

packages/runtime/test/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const TEST_PG_CONFIG = {
3232
? parseInt(process.env['TEST_PG_PORT'])
3333
: 5432,
3434
user: process.env['TEST_PG_USER'] ?? 'postgres',
35-
password: process.env['TEST_PG_PASSWORD'] ?? 'abc123',
35+
password: process.env['TEST_PG_PASSWORD'] ?? 'postgres',
3636
};
3737

3838
export async function makePostgresClient<Schema extends PostgresSchema>(

packages/testtools/src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ datasource db {
2121
return `
2222
datasource db {
2323
provider = 'postgresql'
24-
url = 'postgres://postgres:abc123@localhost:5432/${dbName}'
24+
url = 'postgres://postgres:postgres@localhost:5432/${dbName}'
2525
}
2626
`;
2727
})

0 commit comments

Comments
 (0)