diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2cfed56..d0259f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,8 +29,8 @@ jobs: - name: Run tests with coverage run: | npm run test:coverage -- --coverageReporters=text-summary 2>&1 \ - | sed '/^=============================== Coverage summary ===============================/d' \ - | sed '/^================================================================================/d' \ + | sed -n '/^=============================== Coverage summary ===============================/,/^================================================================================/p' \ > coverage.txt - echo "## Coverage Summary" >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY cat coverage.txt >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY