Skip to content

Commit 0014409

Browse files
committed
Ensure that the base PR branch is checked out and available for git commands to reference it
Signed-off-by: Marco Pivetta <[email protected]>
1 parent 820fc50 commit 0014409

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/mutation-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ jobs:
2121
- "ubuntu-latest"
2222

2323
steps:
24+
- name: "Load CI environment variables"
25+
uses: FranzDiebold/github-env-vars-action@v2
26+
27+
- name: "Checkout $GITHUB_BASE_REF branch (for diffing)"
28+
uses: "actions/checkout@v2"
29+
with:
30+
ref: ${{ GITHUB_BASE_REF }}
31+
2432
- name: "Checkout"
2533
uses: "actions/checkout@v2"
2634

@@ -52,9 +60,6 @@ jobs:
5260
if: ${{ matrix.dependencies == 'locked' }}
5361
run: "composer install --no-interaction --no-progress --no-suggest"
5462

55-
- name: "Load environment variables"
56-
uses: FranzDiebold/github-env-vars-action@v2
57-
5863
- name: "Infection"
5964
run: |
6065
vendor/bin/roave-infection-static-analysis-plugin \

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)