Skip to content

Commit

Permalink
Add tests to the ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed May 28, 2024
1 parent 3efb5cd commit bc5f8a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ jobs:
# TODO: Have working unit tests generated
# - name: Run Unit Tests
# run: |
# npm run unit

# TODO: Integration tests requires metacall/FaaS or dashboard.metacall.io credentials
# TODO: unComment when we are ready for integration tests
# - name: Run Tests
# run: |
# npm run test

- name: Run Integration Tests
shell: bash
run: |
docker compose build
docker compose up test
docker compose down
- name: Publish
uses: JS-DevTools/npm-publish@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "dist/index.js",
"scripts": {
"test": "npm run build && mocha dist/test",
"unit": "npm run test -- --ignore **/integration**",
"prepublishOnly": "npm run build",
"buildDebug": "npm run lint && tsc --sourceMap true",
"build": "npm run lint && tsc",
Expand Down

0 comments on commit bc5f8a8

Please sign in to comment.