Skip to content

Commit 8920e15

Browse files
committed
chore(CI): fix failing CI Actions
1 parent c53dfaf commit 8920e15

File tree

4 files changed

+118
-18
lines changed

4 files changed

+118
-18
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
platform: [ubuntu-latest]
16-
node: [12.x]
16+
node: ['12']
1717

1818
runs-on: ${{ matrix.platform }}
1919

@@ -35,13 +35,8 @@ jobs:
3535
with:
3636
node-version: ${{ matrix.node }}
3737

38-
- run: npm install
39-
40-
- run: npm run dev &
41-
42-
- name: Sleep for 30s
43-
uses: jakejarvis/[email protected]
44-
with:
45-
time: '30s'
46-
47-
- run: npm test
38+
- run: |
39+
npm ci
40+
npm run dev &
41+
sleep 30
42+
npm test

docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ services:
99
- ./test/postgres/mnt:/docker-entrypoint-initdb.d/
1010
environment:
1111
POSTGRES_PASSWORD: postgres
12-

package-lock.json

Lines changed: 106 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build": "npm-run-all build:clean build:transpile build:copy",
1010
"build:clean": "rimraf dist",
1111
"build:transpile": "./node_modules/.bin/tsc",
12-
"build:copy": "cp -r ./src/lib/sql/ ./dist/lib/sql/",
12+
"build:copy": "cp -r ./src/lib/sql ./dist/lib/",
1313
"docker:build": "docker build -t supabase/pg-api:0.4.0 .",
1414
"docker:deploy": "docker push supabase/pg-api:0.4.0",
1515
"dist": "NODE_ENV=production npm-run-all build dist:pkg",
@@ -21,13 +21,17 @@
2121
"test": "node -r esm ./node_modules/.bin/mocha 'test/**/*.js' --recursive "
2222
},
2323
"dependencies": {
24-
"@types/node": "^14.0.5",
2524
"cors": "^2.8.5",
2625
"crypto-js": "^4.0.0",
2726
"express": "^4.17.1",
2827
"pg": "^7.18.2"
2928
},
3029
"devDependencies": {
30+
"@types/cors": "^2.8.6",
31+
"@types/crypto-js": "^3.1.47",
32+
"@types/express": "^4.17.6",
33+
"@types/node": "^14.0.13",
34+
"@types/pg": "^7.14.3",
3135
"axios": "^0.19.2",
3236
"esm": "^3.2.25",
3337
"mocha": "^7.1.2",

0 commit comments

Comments
 (0)