Skip to content

Commit

Permalink
add test coverage to PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlamallama committed Oct 17, 2024
1 parent 9a4d51f commit 7b99d0b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,10 @@ jobs:
- name: Get changed lines in the PR
id: get_diff
run: |
# git fetch origin develop
# git diff origin/develop --unified=0 > diff.txt
# grep '^@@' diff.txt | awk '{print $2}' > changed_lines.txt
# cat changed_lines.txt
echo "Changed files and lines:"
git fetch origin ${{ github.event.pull_request.base.ref }}
git diff --unified=0 --no-color --exit-code origin/${{ github.event.pull_request.base.ref }} HEAD > changes.txt
cat changes.txt
git fetch origin develop
git diff origin/develop --unified=0 > diff.txt
grep '^@@' diff.txt | awk '{print $2}' > changed_lines.txt
cat changed_lines.txt
- name: Check for untested lines
id: check_coverage
Expand Down

0 comments on commit 7b99d0b

Please sign in to comment.