Skip to content

Commit 08ba867

Browse files
committed
clean
1 parent 723627b commit 08ba867

20 files changed

Lines changed: 1499 additions & 6266 deletions

.DS_Store

-6 KB
Binary file not shown.

.github/workflows/test.yml

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,37 @@
1-
name: Test
1+
name: CI
22
on: push
3+
34
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: pnpm/action-setup@v4
10+
with:
11+
version: 10.12.4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version-file: '.nvmrc'
15+
cache: 'pnpm'
16+
17+
- run: pnpm install --frozen-lockfile
18+
- run: pnpm run build
19+
420
test:
521
runs-on: ubuntu-latest
622
steps:
7-
- uses: actions/checkout@v2.1.0
8-
- uses: actions/setup-node@v1
23+
- uses: actions/checkout@v4
24+
- uses: pnpm/action-setup@v4
25+
with:
26+
version: 10.12.4
27+
- uses: actions/setup-node@v4
928
with:
10-
node-version: "16.0.0"
11-
- name: Install
12-
working-directory: ./cdk-postgresql
13-
run: |
14-
yarn
15-
- name: Build
16-
working-directory: ./cdk-postgresql
17-
run: |
18-
yarn build
19-
- name: Test
20-
working-directory: ./cdk-postgresql
21-
run: |
22-
yarn test
29+
node-version-file: '.nvmrc'
30+
cache: 'pnpm'
31+
32+
- run: pnpm install --frozen-lockfile
33+
- run: pnpm --filter @botpress/cdk-postgresql run test
34+
env:
35+
AWS_REGION: us-east-1
36+
AWS_ACCESS_KEY_ID: test
37+
AWS_SECRET_ACCESS_KEY: test

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
11
node_modules
2+
*.js
3+
*.d.ts
4+
*.js.map
5+
6+
.cdk.staging
7+
cdk.out
8+
9+
.DS_Store
10+
.turbo
11+
12+
# Build artifacts
13+
lib/handler-bundle

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"semi": false,
6+
"bracketSpacing": true,
7+
"requirePragma": false,
8+
"arrowParens": "always"
9+
}

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

cdk-postgresql/.gitignore

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
1-
*.js
2-
!jest.config.js
3-
!lib/lambda/**/*.ts
4-
*.d.ts
5-
node_modules
6-
7-
# CDK asset staging directory
8-
.cdk.staging
9-
cdk.out
10-
11-
.DS_Store
1+
# Build artifacts
2+
lib/handler-bundle

cdk-postgresql/.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

cdk-postgresql/jest.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

cdk-postgresql/package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,31 @@
1515
"license": "MIT",
1616
"scripts": {
1717
"build": "tsc && node scripts/bundle-handler.mjs",
18-
"watch": "tsc -w",
19-
"test": "AWS_REGION=us-east-1 AWS_ACCESS_KEY_ID=something AWS_SECRET_ACCESS_KEY=something jest"
18+
"test": "vitest run"
2019
},
2120
"peerDependencies": {
2221
"aws-cdk-lib": "^2.99.0",
2322
"constructs": "^10.0.0"
2423
},
2524
"dependencies": {
2625
"@aws-sdk/client-secrets-manager": "3.750.0",
27-
"pg": "8.13.1",
28-
"pg-format": "1.0.4",
29-
"verror": "1.10.1",
3026
"@types/aws-lambda": "catalog:",
3127
"@types/node": "catalog:",
32-
"esbuild": "catalog:"
28+
"esbuild": "catalog:",
29+
"pg": "8.13.1",
30+
"pg-format": "1.0.4",
31+
"verror": "1.10.1"
3332
},
3433
"devDependencies": {
35-
"@types/jest": "catalog:",
3634
"@types/ms": "catalog:",
3735
"@types/pg": "catalog:",
3836
"@types/pg-format": "catalog:",
3937
"@types/verror": "catalog:",
4038
"aws-cdk-lib": "catalog:",
4139
"constructs": "catalog:",
42-
"jest": "catalog:",
4340
"ms": "2.1.3",
44-
"ts-jest": "catalog:",
45-
"typescript": "catalog:"
41+
"testcontainers": "10.16.0",
42+
"typescript": "catalog:",
43+
"vitest": "catalog:"
4644
}
4745
}

0 commit comments

Comments
 (0)