From 673c84bd70053065afeec062c244682f3ba7a359 Mon Sep 17 00:00:00 2001 From: Johannes Edmeier Date: Mon, 23 Dec 2024 11:58:03 +0100 Subject: [PATCH] build: use coverage from e2e tests in sonar --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f7240a..a822d11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,6 +53,15 @@ jobs: echo 'exec in a new sell for the group change to take effect' sudo -u $USER env "PATH=$PATH" "E2E_RUNTIMES=${{ matrix.e2e-runtime }}" make e2e-test + - name: Upload test coverage + uses: actions/upload-artifact@v4 + with: + name: e2e-coverage-${{ matrix.e2e-runtime }} + path: | + e2e/e2e-coverage-*.out + if-no-files-found: error + retention-days: 3 + extension-ci: uses: steadybit/extension-kit/.github/workflows/reusable-extension-ci.yml@main needs: [e2e-tests] @@ -60,6 +69,7 @@ jobs: go_version: '1.23' build_linux_packages: true VERSION_BUMPER_APPID: ${{ vars.GH_APP_STEADYBIT_APP_ID }} + coverage_artifacts_pattern: e2e-coverage-* secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} PAT_TOKEN_EXTENSION_DEPLOYER: ${{ secrets.PAT_TOKEN_EXTENSION_DEPLOYER }}