Skip to content

Commit

Permalink
github: backend-test: Skip coverage steps unless PR
Browse files Browse the repository at this point in the history
Because they are not used on branch builds like on main.

Signed-off-by: René Dudfield <renedudfield@microsoft.com>
  • Loading branch information
illume committed Jul 2, 2024
1 parent 58bc4de commit 61f2412
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/backend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand Down

0 comments on commit 61f2412

Please sign in to comment.