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 a83dfb2 commit cd205e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ jobs:
run: |
git fetch origin develop
git diff origin/develop --unified=0 > diff.txt
grep '^@@' diff.txt | awk '{print $2}' > changed_lines.txt
awk '/^@@/ {print $0}' diff.txt | while IFS= read -r line; do
# Extract the file name and line numbers
line_number=$(echo "$line" | grep -oP '\d+(?=\s)' | xargs)
echo "Changed lines: $line_number"
done > changed_lines.txt
cat changed_lines.txt
- name: Check for untested lines
Expand Down

0 comments on commit cd205e2

Please sign in to comment.