From 61f241289bb2ef6f9270e2cb63e3a67a9a98f799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= Date: Tue, 2 Jul 2024 11:02:07 +0200 Subject: [PATCH] github: backend-test: Skip coverage steps unless PR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because they are not used on branch builds like on main. Signed-off-by: René Dudfield --- .github/workflows/backend-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/backend-test.yml b/.github/workflows/backend-test.yml index 37a9d16b969..006bbad8fe7 100644 --- a/.github/workflows/backend-test.yml +++ b/.github/workflows/backend-test.yml @@ -56,6 +56,7 @@ jobs: shell: bash - name: Get base branch code coverage + if: ${{ github.event_name }} == 'pull_request' run: | cd backend base_branch="${{ github.base_ref }}" @@ -69,6 +70,7 @@ jobs: shell: bash - name: Compare code coverage + if: ${{ github.event_name }} == 'pull_request' run: | testcoverage="${{ env.coverage }}" base_coverage="${{ env.base_coverage }}" @@ -87,6 +89,7 @@ jobs: shell: bash - name: Comment on PR + if: ${{ github.event_name }} == 'pull_request' run: | testcoverage="${{ env.coverage }}" base_coverage="${{ env.base_coverage }}"