php: Don't lint tests on PHP 5.6

This commit is contained in:
Johannes Meyer 2021-04-09 11:17:37 +02:00
parent e671324ddb
commit b3eeb5a892
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ jobs:
include:
- php: '5.6'
allow_failure: true
phplint_options: "--exclude='{(?>.*/)?test/php/.*}' --exclude=library/Icinga/Test/BaseTestCase.php"
- php: '7.0'
allow_failure: true
@ -40,7 +41,7 @@ jobs:
- name: PHP Lint
if: success() || matrix.allow_failure
run: ./vendor/bin/phplint -n --exclude={^vendor/.*} --exclude=library/Icinga/Util/String.php -- .
run: ./vendor/bin/phplint -n --exclude={^vendor/.*} --exclude=library/Icinga/Util/String.php ${{ matrix.phplint_options }} -- .
- name: PHP CodeSniffer
if: success() || matrix.allow_failure