Skip to content

Commit

Permalink
Coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vpet98 committed Jun 30, 2024
1 parent 00fa54f commit 80519b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ jobs:
rm -f coverage.svg # Remove any existing coverage.svg file
coverage-badge -o coverage.svg
- name: Prepend badge to README
run: |
cd webservice
echo "" > temp_readme.md # Create a temporary file
echo "# EIDA statistics webservice" >> temp_readme.md # Restore the title
echo "" >> temp_readme.md # Add a blank line for spacing
echo "[![Coverage Status](coverage.svg)](./coverage.svg)" >> temp_readme.md # Append the badge
sed '4d' README.md >> temp_readme.md # Append the rest of README.md
mv temp_readme.md README.md # Replace README.md with the modified temp file
- name: Commit and push changes
run: |
Expand Down

0 comments on commit 80519b6

Please sign in to comment.