2424 - { php-version: '8.5', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-req=php+', extensions: ':apcu, mbstring' }
2525 steps :
2626 - name : Checkout code
27- uses : actions/checkout@v4
27+ uses : actions/checkout@v6
2828 with :
2929 # Fetch some commits for Scrutinizer coverage upload
3030 fetch-depth : 15
3838 coverage : xdebug
3939
4040 - name : Install Composer dependencies
41- uses : ramsey/composer-install@v2
41+ uses : ramsey/composer-install@v4
4242 with :
4343 dependency-versions : highest
4444 composer-options : ${{ matrix.composer-options }}
@@ -47,10 +47,26 @@ jobs:
4747 run : composer run phpunit -- --display-deprecations --display-notices --display-warnings --display-errors --display-skipped
4848
4949 - name : Send coverage
50- uses : codecov/codecov-action@v3
50+ uses : codecov/codecov-action@v6
51+ # Do not run this step on forked versions of the main repository (example: contributor forks)
52+ if : github.repository == 'phpmyadmin/motranslator'
53+ with :
54+ fail_ci_if_error : true
55+ token : ${{ secrets.CODECOV_TOKEN }}
56+ flags : unit-${{ matrix.php-version }}-${{ matrix.os }}
57+ name : phpunit-${{ matrix.php-version }}-${{ matrix.os }}
58+ report_type : coverage
59+
60+ - name : Upload test results
61+ uses : codecov/codecov-action@v6
62+ # Do not run this step on forked versions of the main repository (example: contributor forks)
63+ if : ${{ github.repository == 'phpmyadmin/motranslator' && !cancelled() }}
5164 with :
65+ fail_ci_if_error : true
66+ token : ${{ secrets.CODECOV_TOKEN }}
5267 flags : unit-${{ matrix.php-version }}-${{ matrix.os }}
5368 name : phpunit-${{ matrix.php-version }}-${{ matrix.os }}
69+ report_type : test_results
5470
5571 - name : Send coverage to Scrutinizer
5672 uses : sudo-bot/action-scrutinizer@latest
0 commit comments