diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 723a953..b81caae 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -4,35 +4,39 @@ on:
push:
pull_request:
types: [opened, synchronize, reopened]
- branches:
- - master
+
+permissions:
+ contents: read
jobs:
- test-ruleset:
- name: Test rules on PHP ${{ matrix.php-version }}
- runs-on: ubuntu-latest
- strategy:
- matrix:
- php-version: ["7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]
- steps:
- - uses: actions/checkout@v3
- - name: Install xmllint
- run: |
- sudo apt update
- sudo apt install --no-install-recommends -y libxml2-utils
- sudo apt clean
- - name: Use php ${{ matrix.php-version }}
- uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ matrix.php-version }}
- - name: Cache module
- uses: actions/cache@v3
- with:
- path: ~/.composer/cache/
- key: composer-cache
- - name: Install dependencies
- run: composer install
- - name: Lint the ruleset
- run: xmllint --noout --schema ./vendor/squizlabs/php_codesniffer/phpcs.xsd PhpMyAdmin/ruleset.xml
- - name: Run php tests
- run: ./vendor/bin/phpcs --standard=PhpMyAdmin -vv | grep -oF "Processing ruleset $(pwd)/PhpMyAdmin/ruleset.xml"
+ test-ruleset:
+ name: Test rules on PHP ${{ matrix.php-version }}
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v7
+ with:
+ persist-credentials: false
+
+ - name: Install xmllint
+ run: |
+ sudo apt update
+ sudo apt install --no-install-recommends -y libxml2-utils
+ sudo apt clean
+
+ - name: Set up PHP ${{ matrix.php-version }}
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php-version }}
+
+ - name: Install Composer dependencies
+ uses: ramsey/composer-install@v4
+
+ - name: Lint the ruleset
+ run: xmllint --noout --schema ./vendor/squizlabs/php_codesniffer/phpcs.xsd PhpMyAdmin/ruleset.xml
+
+ - name: Run PHP tests
+ run: ./vendor/bin/phpcs --standard=PhpMyAdmin -vv | grep -oF "Processing ruleset $(pwd)/PhpMyAdmin/ruleset.xml"
diff --git a/PhpMyAdmin/ruleset.xml b/PhpMyAdmin/ruleset.xml
index 9187f15..1e64612 100644
--- a/PhpMyAdmin/ruleset.xml
+++ b/PhpMyAdmin/ruleset.xml
@@ -7,9 +7,6 @@
-
-
-
@@ -18,6 +15,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -27,17 +42,82 @@
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/composer.json b/composer.json
index 53cc555..911ae39 100644
--- a/composer.json
+++ b/composer.json
@@ -16,9 +16,9 @@
"issues": "https://github.com/phpmyadmin/coding-standard/issues"
},
"require": {
- "php": "^7.1 || ^8.0",
- "doctrine/coding-standard": "^9.0.0",
- "squizlabs/php_codesniffer": "^3.6.0"
+ "php": "^7.2 || ^8.0",
+ "doctrine/coding-standard": "^12.0",
+ "squizlabs/php_codesniffer": "^3.7"
},
"config": {
"sort-packages": true,