Skip to content

Commit 9a713e0

Browse files
Update ci.yml
1 parent c156a61 commit 9a713e0

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ jobs:
3030
# would always fail in forks
3131
if: github.repository == 'ebics-api/ebics-client-php'
3232
steps:
33-
- uses: actions/checkout@v2
33+
- name: Checkout PR code
34+
uses: actions/checkout@v3
35+
with:
36+
ref: ${{ github.event.pull_request.head.ref }}
37+
repository: ${{ github.event.pull_request.head.repo.full_name }}
3438
- name: Setup PHP
3539
uses: shivammathur/setup-php@v2
3640
with:
@@ -48,7 +52,11 @@ jobs:
4852
# would always fail in forks
4953
if: github.repository == 'ebics-api/ebics-client-php'
5054
steps:
51-
- uses: actions/checkout@v2
55+
- name: Checkout PR code
56+
uses: actions/checkout@v3
57+
with:
58+
ref: ${{ github.event.pull_request.head.ref }}
59+
repository: ${{ github.event.pull_request.head.repo.full_name }}
5260
- name: Setup PHP
5361
uses: shivammathur/setup-php@v2
5462
with:
@@ -66,7 +74,11 @@ jobs:
6674
# would always fail in forks
6775
if: github.repository == 'ebics-api/ebics-client-php'
6876
steps:
69-
- uses: actions/checkout@v2
77+
- name: Checkout PR code
78+
uses: actions/checkout@v3
79+
with:
80+
ref: ${{ github.event.pull_request.head.ref }}
81+
repository: ${{ github.event.pull_request.head.repo.full_name }}
7082
- name: Setup PHP
7183
uses: shivammathur/setup-php@v2
7284
with:
@@ -75,7 +87,7 @@ jobs:
7587
run: composer install --no-scripts --no-progress --ansi
7688
- name: Prepare data
7789
run: unzip -P "$PASSWORD" ./tests/_data.zip -d .
78-
- name: Run phpunit
7990
env:
8091
PASSWORD: ${{ secrets.PWD }}
92+
- name: Run phpunit
8193
run: composer code-test

0 commit comments

Comments
 (0)