|
30 | 30 | # would always fail in forks |
31 | 31 | if: github.repository == 'ebics-api/ebics-client-php' |
32 | 32 | 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 }} |
34 | 38 | - name: Setup PHP |
35 | 39 | uses: shivammathur/setup-php@v2 |
36 | 40 | with: |
|
48 | 52 | # would always fail in forks |
49 | 53 | if: github.repository == 'ebics-api/ebics-client-php' |
50 | 54 | 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 }} |
52 | 60 | - name: Setup PHP |
53 | 61 | uses: shivammathur/setup-php@v2 |
54 | 62 | with: |
|
66 | 74 | # would always fail in forks |
67 | 75 | if: github.repository == 'ebics-api/ebics-client-php' |
68 | 76 | 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 }} |
70 | 82 | - name: Setup PHP |
71 | 83 | uses: shivammathur/setup-php@v2 |
72 | 84 | with: |
|
75 | 87 | run: composer install --no-scripts --no-progress --ansi |
76 | 88 | - name: Prepare data |
77 | 89 | run: unzip -P "$PASSWORD" ./tests/_data.zip -d . |
78 | | - - name: Run phpunit |
79 | 90 | env: |
80 | 91 | PASSWORD: ${{ secrets.PWD }} |
| 92 | + - name: Run phpunit |
81 | 93 | run: composer code-test |
0 commit comments