diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a4dac65e1b7..9fdb9c6d6fa 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -418,8 +418,34 @@ jobs: needs: unit_tests_device_release if: ${{ !github.event.pull_request.head.repo.fork }} steps: + - uses: actions/checkout@v3 + + - name: Download sapmachine JDK 11 + run: | + download_url="https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.14.1/sapmachine-jdk-11.0.14.1_linux-x64_bin.tar.gz" + wget -O "${RUNNER_TEMP}/sapmachine-jdk-11.tar.gz" "${download_url}" + + - name: Setup sapmachine JDK 11 + uses: actions/setup-java@v2 + with: + distribution: 'jdkfile' + jdkFile: ${{ runner.temp }}/sapmachine-jdk-11.tar.gz + java-version: '11.0.14' + architecture: x64 + cache: 'gradle' + + - uses: maxim-lobanov/setup-android-tools@v1 + with: + cache: true + - name: Generate JaCoCo report run: ./gradlew -PdisablePreDex :Corona-Warn-App:jacocoTestReportDeviceRelease -i + + - name: Archive JaCoCo report + uses: actions/upload-artifact@v3 + with: + name: reports + path: Corona-Warn-App/build/reports - name: SonarCloud Scan uses: sonarsource/sonarcloud-github-action@v1.6