Skip to content

Commit

Permalink
Trying to add the redable coverage report in the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachinbisht27 committed Sep 13, 2023
1 parent c6dc1b3 commit 17dfef4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

- name: Install jq
run: |
sudo apt-get update
sudo apt-get install jq -y
- name: Post Code Coverage Comment
run: |
echo "Code Coverage Report" > coverage_comment.txt
Expand All @@ -86,8 +81,8 @@ jobs:
cat coverage_report.txt >> coverage_comment.txt
formatted_comment=$(cat coverage_comment.txt | jq -Rs '.')
# Post the comment using the GitHub API with PR number directly
formatted_comment=$(cat coverage_comment.txt)
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/json" \
Expand Down

0 comments on commit 17dfef4

Please sign in to comment.