diff --git a/.github/workflows/test_and_run_demo.yaml b/.github/workflows/test_and_run_demo.yaml index 9dee1c1..2fc9ae2 100644 --- a/.github/workflows/test_and_run_demo.yaml +++ b/.github/workflows/test_and_run_demo.yaml @@ -45,8 +45,15 @@ jobs: id: jacoco uses: madrapps/jacoco-report@v1.7.1 with: - paths: | - ${GITHUB_WORKSPACE}/kmp-socketio/build/reports/kover/report.xml + paths: ${{ github.workspace }}/kmp-socketio/build/reports/kover/report.xml token: ${{ secrets.GITHUB_TOKEN }} min-coverage-overall: 80 min-coverage-changed-files: 80 + pass-emoji: ":white_check_mark:" + fail-emoji: ":negative_squared_cross_mark:" + - name: Coverage check + if: ${{ steps.jacoco.outputs.coverage-overall < 80.0 }} || ${{ steps.jacoco.outputs.coverage-changed-files < 80.0 }} + uses: actions/github-script@v7 + with: + script: | + core.setFailed("Coverage check failed! overall ${{ steps.jacoco.outputs.coverage-overall }}, diff ${{ steps.jacoco.outputs.coverage-changed-files }}")