Repository navigation
fix: decode extractor responses with declared charset #439
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Coverage | |
| on: | |
| pull_request: | |
| branches: ["dev", "main"] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| concurrency: | |
| group: coverage-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| coverage: | |
| runs-on: [self-hosted, Linux, X64, ci-stack] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Isolate Gradle user home | |
| run: echo "GRADLE_USER_HOME=${RUNNER_TEMP}/gradle-user-home" >> "$GITHUB_ENV" | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: "25" | |
| distribution: temurin | |
| - uses: gradle/actions/setup-gradle@v6 | |
| - name: Detect affected test modules | |
| id: affected | |
| env: | |
| AFFECTED_GRADLE_TASK: test | |
| run: bash .github/scripts/ci-affected-tasks.sh | |
| - name: Run affected tests and coverage report | |
| if: steps.affected.outputs.tasks != '' | |
| env: | |
| TASKS: ${{ steps.affected.outputs.tasks }} | |
| run: | | |
| readarray -t task_args <<<"$TASKS" | |
| printf 'Running affected tests:\n%s\n' "$TASKS" | |
| ./gradlew "${task_args[@]}" --parallel --max-workers=32 | |
| ./gradlew jacocoTestReport jacocoTestCoverageVerification --parallel --max-workers=32 | |
| - name: No coverage required | |
| if: steps.affected.outputs.tasks == '' | |
| run: echo "No source or build changes require coverage." | |
| - name: Upload coverage HTML report | |
| if: always() && steps.affected.outputs.tasks != '' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: jacoco-html-report | |
| path: build/reports/jacoco/test/html | |
| - name: Upload coverage XML report | |
| if: always() && steps.affected.outputs.tasks != '' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: jacoco-xml-report | |
| path: build/reports/jacoco/test/jacocoTestReport.xml |