diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index da1495325..c3d6ce326 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -30,18 +30,43 @@ jobs: run: pnpm coverage:ci - name: Jest Coverage Comment - id: coverageComment + id: coverageComment1 + uses: MishaKav/jest-coverage-comment@main + with: + hide-summary: true + coverage-summary-path: ./packages/ilib-lint/coverage/coverage-summary.json + - name: Jest Coverage Comment + id: coverageComment2 uses: MishaKav/jest-coverage-comment@main with: hide-summary: true coverage-summary-path: ./packages/ilib-lint-python/coverage/coverage-summary.json + - name: Jest Coverage Comment + id: coverageComment3 + uses: MishaKav/jest-coverage-comment@main + with: + hide-summary: true + coverage-summary-path: ./packages/ilib-lint-python-gnu/coverage/coverage-summary.json + - name: Jest Coverage Comment + id: coverageComment4 + uses: MishaKav/jest-coverage-comment@main + with: + hide-summary: true + coverage-summary-path: ./packages/ilib-lint-react/coverage/coverage-summary.json + - name: Jest Coverage Comment + id: coverageComment5 + uses: MishaKav/jest-coverage-comment@main + with: + hide-summary: true + coverage-summary-path: ./packages/loctool/coverage/coverage-summary.json + - name: Update README with Coverage HTML run: | - dupa=$(echo '${{ steps.coverageComment.outputs.summaryHtml }}' | sed 's/[&/\]/\\&/g') - - dupa=$(echo "$dupa" | sed ':a;N;$!ba;s/\n/\\n/g') + DUPAAAA=$(echo "${{ steps.coverageComment1.outputs.summaryHtml }}${{ steps.coverageComment2.outputs.summaryHtml }}${{ steps.coverageComment3.outputs.summaryHtml }}${{ steps.coverageComment4.outputs.summaryHtml }}${{ steps.coverageComment5.outputs.summaryHtml }}" | sed 's/[&/\]/\\&/g') + DUPAAAA=$(echo "$DUPAAAA" | sed ':a;N;$!ba;s/\n/\\n/g') + - sed -i "//,//c\\n$dupa\n" ./README.md + sed -i "//,//c\\n$DUPAAAA\n" ./README.md cat ./README.md - name: Commit & Push changes in README