Skip to content

Commit 90a66e3

Browse files
committed
Start local api
1 parent b72e3ae commit 90a66e3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/push.yml

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
- name: Lint
4545
run: npm run lint
4646

47+
- name: Start API
48+
run: npm start
49+
4750
- name: Test
4851
run: npm test
4952

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build": "sls package",
1010
"lint": "eslint src --ext .js -c node_modules/serverless-bundle/src/eslintrc.json",
1111
"pretty": "pretty-quick",
12-
"test": "serverless-bundle test",
12+
"test": "until nc -z localhost 3000; do sleep 1; done && serverless-bundle test",
1313
"watch": "serverless-bundle test --watch",
1414
"client": "node example/client.js"
1515
},
@@ -62,4 +62,4 @@
6262
"@kdcio/api-gw-resp": "^1.3.1",
6363
"debug": "^4.3.1"
6464
}
65-
}
65+
}

0 commit comments

Comments
 (0)