From 44482547f1f9d11e324a8b89f97e5376bbca2ec7 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Mon, 15 Apr 2024 12:42:44 +0200 Subject: [PATCH] Phpstan: Use separate workflow --- .github/workflows/php.yml | 12 ++++-------- .github/workflows/phpstan.yml | 10 ++++++++++ phpstan.neon | 3 --- 3 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/phpstan.yml diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 180952a..b498bdd 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -15,12 +15,12 @@ jobs: strategy: fail-fast: false matrix: - php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] + php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ] os: [ 'ubuntu-latest' ] steps: - name: Checkout code base - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -40,10 +40,6 @@ jobs: if: ${{ ! cancelled() }} run: phpcs -wps --colors - - name: PHPStan - if: ${{ ! cancelled() }} - uses: php-actions/phpstan@v3 - test: name: Unit tests with PHP ${{ matrix.php }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -54,12 +50,12 @@ jobs: strategy: fail-fast: false matrix: - php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] + php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] os: [ 'ubuntu-latest' ] steps: - name: Checkout code base - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml new file mode 100644 index 0000000..a4430d9 --- /dev/null +++ b/.github/workflows/phpstan.yml @@ -0,0 +1,10 @@ +name: PHPStan + +on: + pull_request: + branches: + - main + +jobs: + phpstan: + uses: icinga/github-actions/.github/workflows/phpstan.yml@main diff --git a/phpstan.neon b/phpstan.neon index 5891e2f..6943467 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -11,9 +11,6 @@ parameters: paths: - src - scanDirectories: - - vendor - ignoreErrors: - messages: