π§βπ» Add debug helper #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: backend-coverage | |
on: | |
pull_request_target: | |
types: [assigned, opened, synchronize, reopened] | |
branches: [main, develop, qa, canary] | |
paths: | |
- "twake/backend/core/**" | |
- "twake/backend/node/**" | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: "refs/pull/${{ github.event.number }}/merge" | |
- name: unit-test | |
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:unit | |
- name: e2e-mongo-test | |
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn -e SEARCH_DRIVER=mongodb -e DB_DRIVER=mongodb -e PUBSUB_TYPE=local node npm run test:e2e | |
- name: generate coverage summary json | |
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:merge:json | |
- name: generate coverage summary text | |
run: cd twake && docker-compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:merge:text | |
- name: Jest Coverage Comment | |
uses: MishaKav/jest-coverage-comment@main | |
with: | |
coverage-summary-path: twake/coverage/merged/coverage-summary.json | |
coverage-path: twake/coverage/coverage-report.txt |