Skip to content

Commit

Permalink
fix: Normalize the option to post coverage as PR comment (#210)
Browse files Browse the repository at this point in the history
This should bring back the coverage PR comment on this repo.
  • Loading branch information
cicdguy committed Feb 13, 2024
1 parent 01672bb commit 2b7d0a7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@ jobs:
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
path: ${{ github.event.repository.name }}

- name: Normalize inputs ⊳
id: normalizer
shell: bash
run: |
echo "publish-coverage-report=${{ inputs.publish-coverage-report }}" >> $GITHUB_OUTPUT
if [ "${{ inputs.publish-coverage-report }}" == "" ]
then {
echo "publish-coverage-report=true" >> $GITHUB_OUTPUT
}
fi
- name: Restore SD cache 💰
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -271,7 +282,7 @@ jobs:
path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}/coverage.xml
threshold: 80
fail: false
publish: ${{ inputs.publish-coverage-report }}
publish: ${{ steps.normalizer.outputs.publish-coverage-report }}
diff: true
continue-on-error: true

Expand Down

0 comments on commit 2b7d0a7

Please sign in to comment.