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