Skip to content

Commit d59cf6e

Browse files
committed
Checkout base branch to resolve codeigniter4/framework
1 parent 2b8add3 commit d59cf6e

9 files changed

+54
-0
lines changed

.github/workflows/reusable-coveralls.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
runs-on: ubuntu-22.04
1414

1515
steps:
16+
- name: Checkout base branch for PR
17+
if: github.event_name == 'pull_request'
18+
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.base_ref }}
21+
1622
- name: Checkout
1723
uses: actions/checkout@v4
1824

.github/workflows/reusable-phpunit-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ jobs:
148148
sudo apt-get install -y gsfonts libmagickwand-dev imagemagick
149149
sudo apt-get install --fix-broken
150150
151+
- name: Checkout base branch for PR
152+
if: github.event_name == 'pull_request'
153+
uses: actions/checkout@v4
154+
with:
155+
ref: ${{ github.base_ref }}
156+
151157
- name: Checkout
152158
uses: actions/checkout@v4
153159

.github/workflows/reusable-serviceless-phpunit-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ jobs:
6060
sudo apt-get install -y imagemagick
6161
sudo apt-get install --fix-broken
6262
63+
- name: Checkout base branch for PR
64+
if: github.event_name == 'pull_request'
65+
uses: actions/checkout@v4
66+
with:
67+
ref: ${{ github.base_ref }}
68+
6369
- name: Checkout
6470
uses: actions/checkout@v4
6571

.github/workflows/test-autoreview.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ jobs:
3535
name: Check normalized composer.json
3636
runs-on: ubuntu-latest
3737
steps:
38+
- name: Checkout base branch for PR
39+
if: github.event_name == 'pull_request'
40+
uses: actions/checkout@v4
41+
with:
42+
ref: ${{ github.base_ref }}
43+
3844
- name: Checkout
3945
uses: actions/checkout@v4
4046

.github/workflows/test-coding-standards.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
- '8.3'
3333

3434
steps:
35+
- name: Checkout base branch for PR
36+
if: github.event_name == 'pull_request'
37+
uses: actions/checkout@v4
38+
with:
39+
ref: ${{ github.base_ref }}
40+
3541
- name: Checkout
3642
uses: actions/checkout@v4
3743

.github/workflows/test-deptrac.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jobs:
3636
name: Architectural Inspection
3737
runs-on: ubuntu-22.04
3838
steps:
39+
- name: Checkout base branch for PR
40+
if: github.event_name == 'pull_request'
41+
uses: actions/checkout@v4
42+
with:
43+
ref: ${{ github.base_ref }}
44+
3945
- name: Checkout
4046
uses: actions/checkout@v4
4147

.github/workflows/test-phpstan.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ jobs:
4545
strategy:
4646
fail-fast: false
4747
steps:
48+
- name: Checkout base branch for PR
49+
if: github.event_name == 'pull_request'
50+
uses: actions/checkout@v4
51+
with:
52+
ref: ${{ github.base_ref }}
53+
4854
- name: Checkout
4955
uses: actions/checkout@v4
5056

.github/workflows/test-psalm.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
if: (! contains(github.event.head_commit.message, '[ci skip]'))
2828

2929
steps:
30+
- name: Checkout base branch for PR
31+
if: github.event_name == 'pull_request'
32+
uses: actions/checkout@v4
33+
with:
34+
ref: ${{ github.base_ref }}
35+
3036
- name: Checkout
3137
uses: actions/checkout@v4
3238

.github/workflows/test-rector.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
matrix:
4848
php-versions: ['8.1', '8.3']
4949
steps:
50+
- name: Checkout base branch for PR
51+
if: github.event_name == 'pull_request'
52+
uses: actions/checkout@v4
53+
with:
54+
ref: ${{ github.base_ref }}
55+
5056
- name: Checkout
5157
uses: actions/checkout@v4
5258

0 commit comments

Comments
 (0)