Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tests): coverage added #15

Merged
merged 10 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Describe your changes
## ✍️ Describe your changes

_None_

## Issue ticket number and link
## 🔗 Issue ticket number and link

_None_

## Checklist before requesting a review
## Checklist before requesting a review

- [ ] I have performed a self-review of my code.
- [ ] If it is a core feature, I have added thorough tests.
Expand Down
23 changes: 22 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,32 @@ jobs:
- name: 🛠️ Sync versions
run: yarn script:sync-projects

- name: 🛠️ Find PR
uses: jwalton/gh-find-current-pr@v1
id: findPr

- name: 🧹 Lint
run: yarn lint

- name: 🧪 Run tests
run: yarn test:jest
run: npx jest --ci --json --coverage --testLocationInResults --outputFile=coverage/report.json

- name: 🧪 Create coverage report markdown
uses: ArtiomTr/jest-coverage-report-action@v2
id: coverage
with:
prnumber: ${{ steps.findPr.outputs.number }}
coverage-file: coverage/report.json
package-manager: yarn
custom-title: 🧪 Unit tests
threshold: 80
skip-step: all
output: report-markdown

- name: 💬 Create coverage report comment
uses: marocchino/sticky-pull-request-comment@v2
with:
message: ${{ steps.coverage.outputs.report }}

- name: ⬆️ Upload coverage reports
uses: codecov/codecov-action@v4
Expand Down