Skip to content

Commit

Permalink
add psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
sergix44 committed Jun 27, 2023
1 parent 9da8d30 commit 08256f7
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,34 @@ jobs:
run: composer install --no-progress

- name: Run test suite
run: vendor/bin/pest --fail-on-warning
run: vendor/bin/pest --fail-on-warning
static-analysis:
runs-on: ubuntu-latest
name: Psalm
steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-8.1-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-8.1
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --no-progress --no-ansi

- name: Run Psalm
run: vendor/bin/psalm

0 comments on commit 08256f7

Please sign in to comment.