Skip to content

Commit ff34d9d

Browse files
committed
Merge branch '5.11.x'
2 parents 18730fb + 8d57493 commit ff34d9d

File tree

4 files changed

+38
-7
lines changed

4 files changed

+38
-7
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Lint and analyse PHP files
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
pull_request:
@@ -13,7 +16,7 @@ jobs:
1316
php-version: [ '8.2' ]
1417
steps:
1518
- name: Checkout code
16-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
1720

1821
- name: Set up PHP ${{ matrix.php-version }}
1922
uses: shivammathur/setup-php@v2
@@ -36,7 +39,7 @@ jobs:
3639
php-version: [ '8.2' ]
3740
steps:
3841
- name: Checkout code
39-
uses: actions/checkout@v4
42+
uses: actions/checkout@v6
4043

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

.github/workflows/lint-docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Lint PHP documentation
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
pull_request:
@@ -10,7 +13,7 @@ jobs:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- name: Checkout code
13-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1417

1518
- name: lint php documentation
1619
uses: sudo-bot/action-doctum@v5

.github/workflows/mutation-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Mutation tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:
@@ -20,7 +23,7 @@ jobs:
2023
operating-system: [ ubuntu-latest ]
2124
steps:
2225
- name: Checkout code
23-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2427

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

.github/workflows/tests.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Run tests
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
pull_request:
@@ -20,7 +23,7 @@ jobs:
2023
- { php-version: '8.5', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-req=php+' }
2124
steps:
2225
- name: Checkout code
23-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2427
with:
2528
# Fetch some commits for Scrutinizer coverage upload
2629
fetch-depth: 15
@@ -46,7 +49,26 @@ jobs:
4649
run: composer run phpunit
4750

4851
- name: Send coverage
49-
uses: codecov/codecov-action@v3
52+
uses: codecov/codecov-action@v6
53+
# Do not run this step on forked versions of the main repository (example: contributor forks)
54+
if: github.repository == 'phpmyadmin/sql-parser'
55+
with:
56+
fail_ci_if_error: true
57+
token: ${{ secrets.CODECOV_TOKEN }}
58+
flags: unit-${{ matrix.php-version }}-${{ matrix.os }}
59+
name: phpunit-${{ matrix.php-version }}-${{ matrix.os }}
60+
report_type: coverage
61+
62+
- name: Upload test results
63+
uses: codecov/codecov-action@v6
64+
# Do not run this step on forked versions of the main repository (example: contributor forks)
65+
if: ${{ github.repository == 'phpmyadmin/sql-parser' && !cancelled() }}
66+
with:
67+
fail_ci_if_error: true
68+
token: ${{ secrets.CODECOV_TOKEN }}
69+
flags: unit-${{ matrix.php-version }}-${{ matrix.os }}
70+
name: phpunit-${{ matrix.php-version }}-${{ matrix.os }}
71+
report_type: test_results
5072

5173
- name: Send coverage to Scrutinizer
5274
uses: sudo-bot/action-scrutinizer@latest
@@ -69,7 +91,7 @@ jobs:
6991
- { php-version: '8.5', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-req=php+' }
7092
steps:
7193
- name: Checkout code
72-
uses: actions/checkout@v4
94+
uses: actions/checkout@v6
7395
with:
7496
# Fetch some commits for Scrutinizer coverage upload
7597
fetch-depth: 15

0 commit comments

Comments
 (0)