Skip to content

Commit

Permalink
feat: collect coverage and update service on pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
iurynogueira committed Nov 30, 2023
1 parent ee4b467 commit f29b840
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ jobs:
with:
coverageCommand: yarn test:coverage

- name: Update coverage on service
run: |
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": '"$coverage"'}' \
https://collect-coverage-brisanet.koyeb.app/systems
- name: Run Prettier
run: yarn prettier

Expand Down

0 comments on commit f29b840

Please sign in to comment.