Skip to content

Commit bc5f8a8

Browse files
committed
Add tests to the ci.
1 parent 3efb5cd commit bc5f8a8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ jobs:
3838
# TODO: Have working unit tests generated
3939
# - name: Run Unit Tests
4040
# run: |
41-
# npm run unit
42-
43-
# TODO: Integration tests requires metacall/FaaS or dashboard.metacall.io credentials
44-
# TODO: unComment when we are ready for integration tests
45-
# - name: Run Tests
46-
# run: |
4741
# npm run test
4842

43+
- name: Run Integration Tests
44+
shell: bash
45+
run: |
46+
docker compose build
47+
docker compose up test
48+
docker compose down
49+
4950
- name: Publish
5051
uses: JS-DevTools/npm-publish@v1
5152
if: startsWith(github.ref, 'refs/tags/')

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"main": "dist/index.js",
66
"scripts": {
77
"test": "npm run build && mocha dist/test",
8-
"unit": "npm run test -- --ignore **/integration**",
98
"prepublishOnly": "npm run build",
109
"buildDebug": "npm run lint && tsc --sourceMap true",
1110
"build": "npm run lint && tsc",

0 commit comments

Comments
 (0)