Skip to content

Commit

Permalink
fix(ci): SDK unit tests coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
alainncls committed Oct 21, 2024
1 parent 1d97f96 commit d8866fe
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,27 @@ jobs:
- name: Run the unit tests
run: pnpm run test:unit:coverage

- name: List coverage directory
run: ls -R coverage
- name: List content 1
run: ls -la .

- name: Move the report at the root of the project
run: mv sdk/lcov.info .

- name: List content 2
run: ls -la .

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage/lcov.info
files: ./lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true

- name: Move the report at the root of the project
run: mv coverage/lcov.info .

- name: Check test coverage
uses: terencetcf/github-actions-lcov-minimum-coverage-checker@v1
with:
coverage-file: coverage/lcov.info
coverage-file: lcov.info
minimum-coverage: 50

- name: Add coverage summary
Expand Down

0 comments on commit d8866fe

Please sign in to comment.