Skip to content

Commit

Permalink
feat: collect coverage and update via action
Browse files Browse the repository at this point in the history
  • Loading branch information
iurynogueira committed Nov 30, 2023
1 parent 644a211 commit ee4b467
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ jobs:

- name: Update coverage on service
run: |
npm install
npm run test:coverage
coverage=$(grep -oP "(?<=<span class=\"strong\">)[^<]+" coverage/lcov-report/index.html | tr -d '%')
curl -X PUT \
-H "Content-Type: application/json" \
-d '{"id": 1, "coverage": 88}' \
-d '{"id": 1, "coverage": '"$coverage"'}' \
https://collect-coverage-brisanet.koyeb.app/systems

0 comments on commit ee4b467

Please sign in to comment.