Skip to content

Commit fef4c6a

Browse files
committed
run phplint during CI
1 parent 5ffc3a0 commit fef4c6a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/php-test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: PHP Tests
22
on: [push, pull_request]
33

44
jobs:
5-
phpunit:
5+
phpunit-and-phplint:
66
runs-on: ubuntu-latest
77
continue-on-error: true
8-
name: "PHP-${{ matrix.php-versions }}: PHPUnit"
8+
name: "PHP-${{ matrix.php-versions }}: PHPUnit/phplint"
99
strategy:
1010
matrix:
1111
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
@@ -17,7 +17,7 @@ jobs:
1717
uses: shivammathur/setup-php@v2
1818
with:
1919
php-version: ${{ matrix.php-versions }}
20-
tools: phpunit:10
20+
tools: phpunit:10, phplint
2121
extensions: redis
2222

2323
- name: Setup problem matchers for PHP
@@ -26,6 +26,9 @@ jobs:
2626
- name: Install dependencies
2727
run: composer install
2828

29+
- name: Run phplint
30+
run: phplint --no-cache lib vendor
31+
2932
- name: Install redis
3033
run: sudo apt-get install -y redis-server
3134

0 commit comments

Comments
 (0)