-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
620 additions
and
620 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ on: | |
pull_request: | ||
branches: [ main ] | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
|
||
|
@@ -19,9 +22,6 @@ jobs: | |
node-version: [18.x] | ||
mongodb-version: [4.4] | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
with: | ||
|
@@ -56,19 +56,12 @@ jobs: | |
echo "isNotEmpty=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Install LCOV | ||
- name: Upload test coverage report | ||
if: ${{ steps.check-lcov-non-empty.outputs.isNotEmpty == 'true'}} | ||
run: | | ||
sudo apt-get update && sudo apt-get install --assume-yes lcov | ||
- name: Report code coverage | ||
if: ${{ steps.check-lcov-non-empty.outputs.isNotEmpty == 'true' }} | ||
uses: zgosalvez/github-actions-report-lcov@v4 | ||
uses: codecov/[email protected] | ||
with: | ||
coverage-files: ./coverage/lcov.info | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
update-comment: true | ||
|
||
files: ./coverage/lcov.info | ||
flags: unittests | ||
# - name: Exit if coverage condition not met | ||
# if: ${{ steps.test.outputs.exit_code }} != 0 | ||
# run: exit ${{ steps.test.outputs.exit_code }} | ||
|
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
Oops, something went wrong.