diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml new file mode 100644 index 0000000..0bf5f52 --- /dev/null +++ b/.github/workflows/psalm.yml @@ -0,0 +1,28 @@ +name: Psalm static analysis + +on: [push] + +jobs: + build: + name: ${{matrix.operating-system}}, PHP ${{ matrix.php }} + + runs-on: ${{ matrix.operating-system }} + + strategy: + matrix: + operating-system: [ ubuntu-latest ] + php: ['8.1' ] + + steps: + - uses: actions/checkout@master + + - name: Setup PHP + uses: nanasess/setup-php@master + with: + php-version: ${{ matrix.php }} + + - name: Install dependencies + run: composer install + + - name: Run psalm + run: php vendor/bin/psalm