From d99bff73b57cacefed61a7354afd702f3d7a2fb5 Mon Sep 17 00:00:00 2001 From: Avi Weiss Date: Thu, 8 Aug 2024 20:39:53 +0200 Subject: [PATCH] Test with conditionals --- .github/workflows/standalone-build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/standalone-build.yml b/.github/workflows/standalone-build.yml index 3be9b547c..f533b75f1 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${{ steps.stats.outputs.ncov_functions == 1 && ' ' || 's' }} reported, but ${{ env.allowed_ncov_functions }} is${{ env.allowed_ncov_functions == 1 && '' || '/are' }} allowed." + echo "::error::${{ steps.stats.outputs.ncov_functions }} uncovered function${{ steps.stats.outputs.ncov_functions == 1 && '' || 's' }} reported, but ${{ env.allowed_ncov_functions }} ${{ env.allowed_ncov_functions == 1 && 'is' || '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${{ steps.stats.outputs.ncov_lines == 1 && ' ' || 's' }} reported, but ${{ env.allowed_ncov_lines }} is${{ env.allowed_ncov_lines == 1 && '' || '/are' }} allowed." + echo "::error::${{ steps.stats.outputs.ncov_lines }} uncovered line${{ steps.stats.outputs.ncov_lines == 1 && '' || 's' }} reported, but ${{ env.allowed_ncov_lines }} ${{ env.allowed_ncov_lines == 1 && 'is' || '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${{ steps.stats.outputs.ncov_branches == 1 && ' ' || 'es' }} reported, but ${{ env.allowed_ncov_branches }} is${{ env.allowed_ncov_branches == 1 && '' || '/are' }} allowed." + echo "::error::${{ steps.stats.outputs.ncov_branches }} uncovered branch${{ steps.stats.outputs.ncov_branches == 1 && '' || 'es' }} reported, but ${{ env.allowed_ncov_branches }} ${{ env.allowed_ncov_branches == 1 && 'is' || '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