Skip to content

Commit 5d33024

Browse files
committed
Merge branch '3.1.x' into 4.1.x
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
2 parents 6bdb10e + 4074d88 commit 5d33024

1 file changed

Lines changed: 34 additions & 30 deletions

File tree

.github/workflows/tests.yml

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,39 @@ on:
44
push:
55
pull_request:
66
types: [opened, synchronize, reopened]
7-
branches:
8-
- master
7+
8+
permissions:
9+
contents: read
910

1011
jobs:
11-
test-ruleset:
12-
name: Test rules on PHP ${{ matrix.php-version }}
13-
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
php-version: ["8.1", "8.2"]
17-
steps:
18-
- 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
24-
- name: Use php ${{ matrix.php-version }}
25-
uses: shivammathur/setup-php@v2
26-
with:
27-
php-version: ${{ matrix.php-version }}
28-
- name: Cache module
29-
uses: actions/cache@v3
30-
with:
31-
path: ~/.composer/cache/
32-
key: composer-cache
33-
- name: Install dependencies
34-
run: composer install
35-
- name: Lint the ruleset
36-
run: xmllint --noout --schema ./vendor/squizlabs/php_codesniffer/phpcs.xsd PhpMyAdmin/ruleset.xml
37-
- name: Run php tests
38-
run: ./vendor/bin/phpcs --standard=PhpMyAdmin -vv | grep -oF "Processing ruleset $(pwd)/PhpMyAdmin/ruleset.xml"
12+
test-ruleset:
13+
name: Test rules on PHP ${{ matrix.php-version }}
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
php-version: ['8.1', '8.2', '8.3', '8.4', '8.5']
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v7
21+
with:
22+
persist-credentials: false
23+
24+
- name: Install xmllint
25+
run: |
26+
sudo apt update
27+
sudo apt install --no-install-recommends -y libxml2-utils
28+
sudo apt clean
29+
30+
- name: Set up PHP ${{ matrix.php-version }}
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php-version }}
34+
35+
- name: Install Composer dependencies
36+
uses: ramsey/composer-install@v4
37+
38+
- name: Lint the ruleset
39+
run: xmllint --noout --schema ./vendor/squizlabs/php_codesniffer/phpcs.xsd PhpMyAdmin/ruleset.xml
40+
41+
- name: Run PHP tests
42+
run: ./vendor/bin/phpcs --standard=PhpMyAdmin -vv | grep -oF "Processing ruleset $(pwd)/PhpMyAdmin/ruleset.xml"

0 commit comments

Comments
 (0)