Skip to content

Merge branch '4.1.x' #34

Merge branch '4.1.x'

Merge branch '4.1.x' #34

Workflow file for this run

name: Test standard
on:
push:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
test-ruleset:
name: Test rules on PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['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-get update
sudo apt-get install --no-install-recommends -y libxml2-utils
sudo apt-get 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"