From b2298374c2fcccedf146bfbec0949e277614c7aa Mon Sep 17 00:00:00 2001 From: Paragon Initiative Enterprises Date: Wed, 8 May 2024 13:06:43 -0400 Subject: [PATCH] Make Psalm a separate check --- .github/workflows/ci.yml | 8 +------- .github/workflows/psalm.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/psalm.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57015d1..95ab3d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,10 +59,4 @@ jobs: run: composer install - name: PHPUnit tests - run: vendor/bin/phpunit - - - name: Install Psalm - run: composer require --dev vimeo/psalm:^4 - - - name: Static Analysis - run: vendor/bin/psalm --php-version=${{ matrix.php-versions }} + run: vendor/bin/phpunit \ No newline at end of file diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml new file mode 100644 index 0000000..4795205 --- /dev/null +++ b/.github/workflows/psalm.yml @@ -0,0 +1,30 @@ +name: Psalm + +on: [push] + +jobs: + psalm: + name: Psalm on PHP ${{ matrix.php-versions }} + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: ['ubuntu-latest'] + php-versions: ['8.2'] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + tools: psalm:4 + coverage: none + + - name: Install Composer dependencies + uses: "ramsey/composer-install@v3" + with: + composer-options: --no-dev + + - name: Static Analysis + run: psalm