We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 459b72b commit ba46518Copy full SHA for ba46518
.github/workflows/tests-frontend.yml
@@ -10,7 +10,7 @@ env:
10
jobs:
11
unit-tests:
12
runs-on: ubuntu-latest
13
- name: Frontend tests
+ name: Frontend tests (Coverage: ${{ env.coverage }}%)
14
steps:
15
- uses: actions/checkout@v4
16
@@ -52,6 +52,13 @@ jobs:
52
timeout-minutes: 30
53
run: yarn test:cov --ci --silent
54
55
+ - name: Extract Coverage Percentage
56
+ id: extract-coverage
57
+ run: |
58
+ COVERAGE=$(cat ./report/coverage/coverage-summary.json | jq '.total.lines.pct')
59
+ echo "Coverage: $COVERAGE%"
60
+ echo "coverage=$COVERAGE" >> $GITHUB_ENV
61
+
62
- name: Upload Test Report
63
uses: actions/upload-artifact@v4
64
if: always()
0 commit comments