diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index e9c863cb838..a211af1b3fb 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -8,9 +8,26 @@ jobs: static-analysis-psalm: name: Static Analysis with Psalm runs-on: ubuntu-latest + steps: - name: Checkout code uses: actions/checkout@v2 + - name: "Install PHP" + uses: "shivammathur/setup-php@1.8.1" + with: + coverage: "none" + php-version: "7.4" + + - name: "Cache dependencies installed with composer" + uses: "actions/cache@v1.0.3" + with: + path: "~/.composer/cache" + key: "composer-${{ hashFiles('composer.json') }}" + restore-keys: "composer-" + + - name: "Install dependencies with composer" + run: "composer update --no-interaction --no-progress --no-suggest" + - name: Psalm - uses: docker://vimeo/psalm-github-actions + run: "vendor/bin/psalm"