Skip to content

Commit cda6834

Browse files
committed
Lint the ruleset.xml file
1 parent e2bfa0e commit cda6834

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ on:
99

1010
jobs:
1111
test-ruleset:
12-
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
13-
runs-on: ${{ matrix.os }}
12+
name: Test rules on PHP ${{ matrix.php-version }}
13+
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
1616
php-version: ["7.1", "7.2", "7.3", "7.4", "8.0"]
17-
os: [ubuntu-latest]
1817
steps:
1918
- uses: actions/checkout@v3
19+
- name: Install xmllint
20+
run: |
21+
sudo apt update
22+
sudo apt install --no-install-recommends -y libxml2-utils
23+
sudo apt clean
2024
- name: Use php ${{ matrix.php-version }}
2125
uses: shivammathur/setup-php@v2
2226
with:
@@ -28,5 +32,7 @@ jobs:
2832
key: composer-cache
2933
- name: Install dependencies
3034
run: composer install
35+
- name: Lint the ruleset
36+
run: xmllint --noout --schema ./vendor/squizlabs/php_codesniffer/phpcs.xsd PhpMyAdmin/ruleset.xml
3137
- name: Run php tests
3238
run: ./vendor/bin/phpcs --standard=PhpMyAdmin -vv | grep -oF "Processing ruleset $(pwd)/PhpMyAdmin/ruleset.xml"

0 commit comments

Comments
 (0)