From 37ef411341b71067d15975ca4854654192218c79 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Tue, 26 Mar 2024 07:57:45 +0100 Subject: [PATCH] Ship Corbertura assets as a zip for our partner They are requiring a zip file instead of the xml directly. Ship it both so that we still link the xml directly from README. --- .github/workflows/qa.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml index 5e2732045..c1df2e1b1 100644 --- a/.github/workflows/qa.yaml +++ b/.github/workflows/qa.yaml @@ -101,11 +101,18 @@ jobs: with: file: ./coverage/codecov/Cobertura.xml token: ${{ secrets.CODECOV_TOKEN }} - - name: Publish coverage as a release artifact + + # For quality indicator model partner measure. + - name: Compress coverage for release asset + if: startsWith(github.ref, 'refs/tags/') + run: cd ./coverage/codecov/ && zip ../Cobertura.xml.zip ./Cobertura.xml + - name: Publish coverage as a release asset uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: - files: ./coverage/codecov/Cobertura.xml + files: | + ./coverage/codecov/Cobertura.xml + ./coverage/Cobertura.xml.zip adwatchd-tests: name: Windows tests for adwatchd