Skip to content

Commit fe8e3bf

Browse files
committed
Bump action and setup codecov using the token method
1 parent caf6693 commit fe8e3bf

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

.github/workflows/lint-and-analyse-php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
php-version: [ '7.2' ]
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717

1818
- name: Set up PHP ${{ matrix.php-version }}
1919
uses: shivammathur/setup-php@v2
@@ -36,7 +36,7 @@ jobs:
3636
php-version: [ '7.4' ]
3737
steps:
3838
- name: Checkout code
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v6
4040

4141
- name: Set up PHP ${{ matrix.php-version }}
4242
uses: shivammathur/setup-php@v2

.github/workflows/lint-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

1515
- name: lint php documentation
1616
uses: sudo-bot/action-doctum@v5

.github/workflows/mutation-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
operating-system: [ ubuntu-latest ]
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020

2121
- name: Fetch github.base_ref (for diffing)
2222
if: ${{ github.base_ref != '' }}

.github/workflows/tests.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- { php-version: '8.5', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-req=php+' }
2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2424
with:
2525
# Fetch some commits for Scrutinizer coverage upload
2626
fetch-depth: 15
@@ -50,7 +50,26 @@ jobs:
5050
run: composer run phpunit
5151

5252
- 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
5473

5574
- name: Send coverage to Scrutinizer
5675
uses: sudo-bot/action-scrutinizer@latest
@@ -73,7 +92,7 @@ jobs:
7392
- { php-version: '8.5', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-req=php+' }
7493
steps:
7594
- name: Checkout code
76-
uses: actions/checkout@v4
95+
uses: actions/checkout@v6
7796
with:
7897
# Fetch some commits for Scrutinizer coverage upload
7998
fetch-depth: 15

0 commit comments

Comments
 (0)