Fix unexpected coverage diffs for PRs that aren't up to date (#8161)
This commit is contained in:
parent
e02ab66884
commit
0a16989d26
1 changed files with 5 additions and 0 deletions
5
.github/workflows/test_coverage.yml
vendored
5
.github/workflows/test_coverage.yml
vendored
|
@ -12,6 +12,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
# If this is a pull request, make sure we check out its head rather than the
|
||||||
|
# automatically generated merge commit, so that the coverage diff excludes
|
||||||
|
# unrelated changes in the base branch
|
||||||
|
ref: ${{ github.event.type == 'PullRequestEvent' && github.event.pull_request.head.sha || '' }}
|
||||||
|
|
||||||
- name: Yarn cache
|
- name: Yarn cache
|
||||||
uses: c-hive/gha-yarn-cache@v2
|
uses: c-hive/gha-yarn-cache@v2
|
||||||
|
|
Loading…
Reference in a new issue