diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..9f44be86 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..57bff2f5 --- /dev/null +++ b/.github/dependabot.yml @@ -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 + diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 9a8c40d3..b1facfa9 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -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 diff --git a/.gitignore b/.gitignore index 2c19236f..503a4e11 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ dist *.db *.db-journal *.tgz +.pnpm-store diff --git a/packages/runtime/test/utils.ts b/packages/runtime/test/utils.ts index 90662c1f..d1e00a6a 100644 --- a/packages/runtime/test/utils.ts +++ b/packages/runtime/test/utils.ts @@ -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( diff --git a/packages/testtools/src/schema.ts b/packages/testtools/src/schema.ts index 5d44daf3..5a134293 100644 --- a/packages/testtools/src/schema.ts +++ b/packages/testtools/src/schema.ts @@ -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}' } `; })