Skip to content

Commit b2914f0

Browse files
authored
Merge pull request #1570 from amit-ksh/add-codecov
Add codecov
2 parents b7dde92 + c91c93e commit b2914f0

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
run: yarn test:env:node-ts
5858
- name: Run Browser env
5959
run: yarn test:env:browser
60+
- name: Upload coverage reports to Codecov
61+
uses: codecov/codecov-action@v3
62+
env:
63+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6064
style_tests:
6165
runs-on: ubuntu-latest
6266
name: style-check

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<p align="center">
1818
<a href="https://www.npmjs.com/package/meilisearch"><img src="https://img.shields.io/npm/v/meilisearch.svg" alt="npm version"></a>
1919
<a href="https://github.com/meilisearch/meilisearch-js/actions"><img src="https://github.com/meilisearch/meilisearch-js/workflows/Tests/badge.svg" alt="Tests"></a>
20+
<a href="https://codecov.io/gh/meilisearch/meilisearch-python">
21+
<img src="https://codecov.io/github/meilisearch/meilisearch-js/coverage.svg?branch=main" alt="Codecov">
22+
</a>
2023
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="Prettier"></a>
2124
<a href="https://github.com/meilisearch/meilisearch-js/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-informational" alt="License"></a>
2225
<a href="https://ms-bors.herokuapp.com/repositories/10"><img src="https://bors.tech/images/badge_small.svg" alt="Bors enabled"></a>

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const config = {
33
testMatch: ['<rootDir>/tests/**/*.ts?(x)'],
44
verbose: true,
55
testPathIgnorePatterns: ['meilisearch-test-utils', 'env'],
6+
collectCoverage: true,
67
coverageThreshold: {
78
global: {
89
'ts-jest': {

0 commit comments

Comments
 (0)