name: Psalm on: push: paths: - '**.php' - 'psalm.xml' - 'psalm-baseline.xml' - '.github/workflows/psalm.yml' jobs: psalm: name: Psalm runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.0' coverage: none - name: Install composer dependencies uses: composer install -n --prefer-dist - name: Run Psalm run: ./vendor/bin/psalm --threads=2 --shepherd