diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c4b05f00b..668e05a1c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,6 +41,15 @@ jobs: with: coverageCommand: yarn test:coverage + - name: Update coverage on service + run: | + coverage=$(grep -oP "(?<=)[^<]+" 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