From 10e2d1408c87f36eaa96495d7ad5b96aeffabcaa Mon Sep 17 00:00:00 2001 From: dannc Date: Thu, 5 Oct 2023 16:20:31 +0700 Subject: [PATCH] ci: add analyze action --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f86ddf..ed345e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,3 +38,14 @@ jobs: run: composer update - name: Run phpcs run: vendor/bin/phpcs --standard=phpcs.xml --report=full --config-set php_version ${{ matrix.php_version }} ./src ./tests + + analyze: + runs-on: ubuntu-22.04 + container: dannecron/php-for-dev:8.2 + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Init composer.lock and install dependencies + run: composer update + - name: Run phpstan + run: vendor/bin/phpstan analyse src tests