From ea6c9316d49ccf62e5ec77a1ab8de08c14ea032b Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Thu, 31 Mar 2022 02:15:49 -0400 Subject: [PATCH] ci: add coverage-action to release workflow --- .github/workflows/build.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22834d61b..772cb59fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -208,6 +208,20 @@ jobs: tag: ${{ env.PKG_VERSION }} writeToFile: false + - name: Process Coverage Stats + Chart + id: covprocess + uses: ./dev/coverage-action/ + if: ${{ github.event.inputs.skiptests == 'false' }} + with: + token: ${{ github.token }} + tokenCommon: ${{ secrets.GH_COMMON_TOKEN }} + repoCommon: common + version: ${{needs.prepare.outputs.pkg_version}} + changelog: ${{ steps.changelog.outputs.changes }} + summary: ${{ github.event.inputs.summary }} + coverageResultsPath: coverage.json + histCoveragePath: historical-coverage.json + - name: Create Release uses: ncipollo/release-action@v1 if: env.SHOULD_DEPLOY == 'true' @@ -216,7 +230,7 @@ jobs: draft: false tag: ${{ env.PKG_VERSION }} name: ${{ env.PKG_VERSION }} - body: ${{ steps.changelog.outputs.changes }} + body: ${{ steps.covprocess.outputs.changelog }} artifacts: "/home/runner/work/release/release.tar.gz,coverage.json" token: ${{ secrets.GITHUB_TOKEN }}