|
20 | 20 | - { php-version: '8.5', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-req=php+' } |
21 | 21 | steps: |
22 | 22 | - name: Checkout code |
23 | | - uses: actions/checkout@v4 |
| 23 | + uses: actions/checkout@v6 |
24 | 24 | with: |
25 | 25 | # Fetch some commits for Scrutinizer coverage upload |
26 | 26 | fetch-depth: 15 |
|
50 | 50 | run: composer run phpunit |
51 | 51 |
|
52 | 52 | - name: Send coverage |
53 | | - uses: codecov/codecov-action@v3 |
| 53 | + uses: codecov/codecov-action@v5 |
| 54 | + # Do not run this step on forked versions of the main repository (example: contributor forks) |
| 55 | + if: github.repository == 'phpmyadmin/sql-parser' |
| 56 | + with: |
| 57 | + fail_ci_if_error: true |
| 58 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 59 | + flags: unit-${{ matrix.php-version }}-${{ matrix.os }} |
| 60 | + name: phpunit-${{ matrix.php-version }}-${{ matrix.os }} |
| 61 | + report_type: coverage |
| 62 | + |
| 63 | + - name: Upload test results |
| 64 | + uses: codecov/codecov-action@v5 |
| 65 | + # Do not run this step on forked versions of the main repository (example: contributor forks) |
| 66 | + if: ${{ github.repository == 'phpmyadmin/sql-parser' && !cancelled() }} |
| 67 | + with: |
| 68 | + fail_ci_if_error: true |
| 69 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 70 | + flags: unit-${{ matrix.php-version }}-${{ matrix.os }} |
| 71 | + name: phpunit-${{ matrix.php-version }}-${{ matrix.os }} |
| 72 | + report_type: test_results |
54 | 73 |
|
55 | 74 | - name: Send coverage to Scrutinizer |
56 | 75 | uses: sudo-bot/action-scrutinizer@latest |
|
73 | 92 | - { php-version: '8.5', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-req=php+' } |
74 | 93 | steps: |
75 | 94 | - name: Checkout code |
76 | | - uses: actions/checkout@v4 |
| 95 | + uses: actions/checkout@v6 |
77 | 96 | with: |
78 | 97 | # Fetch some commits for Scrutinizer coverage upload |
79 | 98 | fetch-depth: 15 |
|
0 commit comments