From b3eeb5a892e30020e2d4a9b199bfdc8259b9f175 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 9 Apr 2021 11:17:37 +0200 Subject: [PATCH] php: Don't lint tests on PHP 5.6 --- .github/workflows/php.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index a842886d3..4ca606ac5 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -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