Skip to content

Commit

Permalink
Merge #348
Browse files Browse the repository at this point in the history
348: add code coverage r=brunoocasali a=ahmednfwela

# Pull Request

## Related issue
Fixes #347 

## What does this PR do?
- Adds code coverage

## PR checklist
Please check if your PR fulfills the following requirements:
- [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [ ] Have you read the contributing guidelines?
- [ ] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Ahmed Fwela <[email protected]>
Co-authored-by: Ahmed Fwela <[email protected]>
  • Loading branch information
3 people authored Aug 16, 2023
2 parents 153ae7e + b14443c commit 29cbf7e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
matrix:
version: ['3.0.0']
name: integration-tests (dart ${{ matrix.version }})

services:
meilisearch:
image: getmeili/meilisearch:latest
Expand All @@ -40,9 +39,19 @@ jobs:
with:
sdk: ${{ matrix.version }}
- name: Install dependencies
run: dart pub get
run: |
dart pub get
dart pub global activate coverage
- name: Run integration tests
run: dart test --concurrency=4
run: dart test --concurrency=4 --reporter=github --coverage=./coverage/reports
- name: Generate coverage reports
run: dart pub global run coverage:format_coverage --report-on=./lib --lcov --in=./coverage/reports --out=coverage/lcov.info
- name: Report to Codecov
uses: codecov/codecov-action@v3
with:
file: coverage/lcov.info
fail_ci_if_error: true


linter:
name: linter-check
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<a href="https://github.com/meilisearch/meilisearch-dart/actions"><img src="https://github.com/meilisearch/meilisearch-dart/workflows/Tests/badge.svg" alt="GitHub Workflow Status"></a>
<a href="https://github.com/meilisearch/meilisearch-dart/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-informational" alt="License"></a>
<a href="https://ms-bors.herokuapp.com/repositories/66"><img src="https://bors.tech/images/badge_small.svg" alt="Bors enabled"></a>
<a href="https://codecov.io/gh/meilisearch/meilisearch-dart"><img src="https://codecov.io/gh/meilisearch/meilisearch-dart/branch/main/graph/badge.svg" alt="Code Coverage"></a>
</p>

<p align="center">⚡ The Meilisearch API client written in Dart</p>
Expand Down

0 comments on commit 29cbf7e

Please sign in to comment.