diff --git a/.github/workflows/standalone-build.yml b/.github/workflows/standalone-build.yml index 9492bb6f5..3be9b547c 100644 --- a/.github/workflows/standalone-build.yml +++ b/.github/workflows/standalone-build.yml @@ -109,21 +109,21 @@ jobs: - name: Enforce keeping coverage function minimum up-to-date if: ${{ env.run_lcov == 'TRUE' && always() && steps.stats.outputs.ncov_functions < env.allowed_ncov_functions }} run: | - echo "::error::${{ steps.stats.outputs.ncov_functions }} uncovered function(s) reported, but ${{ env.allowed_ncov_functions }} is/are allowed." + echo "::error::${{ steps.stats.outputs.ncov_functions }} uncovered function${{ steps.stats.outputs.ncov_functions == 1 && ' ' || 's' }} reported, but ${{ env.allowed_ncov_functions }} is${{ env.allowed_ncov_functions == 1 && '' || '/are' }} allowed." echo "::error::Please update (lower) the 'allowed_ncov_functions' variable to ${{ steps.stats.outputs.ncov_functions }} in order to match the new coverage level." /bin/false - name: Enforce keeping coverage line minimum up-to-date if: ${{ env.run_lcov == 'TRUE' && always() && steps.stats.outputs.ncov_lines < env.allowed_ncov_lines }} run: | - echo "::error::${{ steps.stats.outputs.ncov_lines }} uncovered line(s) reported, but ${{ env.allowed_ncov_lines }} is/are allwoed." + echo "::error::${{ steps.stats.outputs.ncov_lines }} uncovered line${{ steps.stats.outputs.ncov_lines == 1 && ' ' || 's' }} reported, but ${{ env.allowed_ncov_lines }} is${{ env.allowed_ncov_lines == 1 && '' || '/are' }} allowed." echo "::error::Please update (lower) the 'allowed_ncov_lines' variable to ${{ steps.stats.outputs.ncov_lines }} in order to match the new coverage level." /bin/false - name: Enforce keeping coverage branch minimum up-to-date if: ${{ env.run_lcov == 'TRUE' && always() && steps.stats.outputs.ncov_branches < env.allowed_ncov_branches }} run: | - echo "::error::${{ steps.stats.outputs.ncov_branches }} uncovered branch(es) reported, but ${{ env.allowed_ncov_branches }} is/are allowed." + echo "::error::${{ steps.stats.outputs.ncov_branches }} uncovered branch${{ steps.stats.outputs.ncov_branches == 1 && ' ' || 'es' }} reported, but ${{ env.allowed_ncov_branches }} is${{ env.allowed_ncov_branches == 1 && '' || '/are' }} allowed." echo "::error::Please update (lower) the 'allowed_ncov_branches' variable to ${{ steps.stats.outputs.ncov_branches }} in order to match the new coverage level." /bin/false