From 9474267363018d9c49b5721e4b5a969ebbd77c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 18 Apr 2020 08:29:39 +0200 Subject: [PATCH] Stop relying on the master version of Psalm I just got bitten by a bug on master at https://github.com/doctrine/sql-formatter/pull/43#issuecomment-615576443, and there are good chances we have the bug on the Dbal too. Anyway, it only makes sense to use the same version as in the vendors. --- .github/workflows/continuous-integration.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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"