Skip to content

Commit 35b2a34

Browse files
committed
Checkout base branch to resolve codeigniter4/framework
1 parent 25d6e14 commit 35b2a34

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
@@ -16,6 +16,12 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v4
1818

19+
- name: Checkout base branch for PR
20+
if: github.event_name == 'pull_request'
21+
uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.base_ref }}
24+
1925
- name: Setup PHP
2026
uses: shivammathur/setup-php@v2
2127
with:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ jobs:
151151
- name: Checkout
152152
uses: actions/checkout@v4
153153

154+
- name: Checkout base branch for PR
155+
if: github.event_name == 'pull_request'
156+
uses: actions/checkout@v4
157+
with:
158+
ref: ${{ github.base_ref }}
159+
154160
- name: Setup PHP
155161
uses: shivammathur/setup-php@v2
156162
with:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ jobs:
6363
- name: Checkout
6464
uses: actions/checkout@v4
6565

66+
- name: Checkout base branch for PR
67+
if: github.event_name == 'pull_request'
68+
uses: actions/checkout@v4
69+
with:
70+
ref: ${{ github.base_ref }}
71+
6672
- name: Setup PHP
6773
uses: shivammathur/setup-php@v2
6874
with:

.github/workflows/test-autoreview.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
- name: Checkout
3939
uses: actions/checkout@v4
4040

41+
- name: Checkout base branch for PR
42+
if: github.event_name == 'pull_request'
43+
uses: actions/checkout@v4
44+
with:
45+
ref: ${{ github.base_ref }}
46+
4147
- name: Setup PHP
4248
uses: shivammathur/setup-php@v2
4349
with:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ jobs:
3535
- name: Checkout
3636
uses: actions/checkout@v4
3737

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: Setup PHP
3945
uses: shivammathur/setup-php@v2
4046
with:

.github/workflows/test-deptrac.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
- name: Checkout
4040
uses: actions/checkout@v4
4141

42+
- name: Checkout base branch for PR
43+
if: github.event_name == 'pull_request'
44+
uses: actions/checkout@v4
45+
with:
46+
ref: ${{ github.base_ref }}
47+
4248
- name: Setup PHP
4349
uses: shivammathur/setup-php@v2
4450
with:

.github/workflows/test-phpstan.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848
- name: Checkout
4949
uses: actions/checkout@v4
5050

51+
- name: Checkout base branch for PR
52+
if: github.event_name == 'pull_request'
53+
uses: actions/checkout@v4
54+
with:
55+
ref: ${{ github.base_ref }}
56+
5157
- name: Setup PHP
5258
uses: shivammathur/setup-php@v2
5359
with:

.github/workflows/test-psalm.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
- name: Checkout
3131
uses: actions/checkout@v4
3232

33+
- name: Checkout base branch for PR
34+
if: github.event_name == 'pull_request'
35+
uses: actions/checkout@v4
36+
with:
37+
ref: ${{ github.base_ref }}
38+
3339
- name: Setup PHP
3440
uses: shivammathur/setup-php@v2
3541
with:

.github/workflows/test-rector.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
- name: Checkout
5151
uses: actions/checkout@v4
5252

53+
- name: Checkout base branch for PR
54+
if: github.event_name == 'pull_request'
55+
uses: actions/checkout@v4
56+
with:
57+
ref: ${{ github.base_ref }}
58+
5359
- name: Setup PHP
5460
uses: shivammathur/setup-php@v2
5561
with:

0 commit comments

Comments
 (0)