Skip to content

Commit 78850f4

Browse files
committed
Use official Github Action
It is more concise.
1 parent 9033b95 commit 78850f4

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

.github/workflows/static-analysis.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,8 @@ jobs:
5555
- "7.4"
5656

5757
steps:
58-
- name: "Checkout code"
59-
uses: "actions/checkout@v2"
60-
61-
- name: "Install PHP"
62-
uses: "shivammathur/setup-php@v2"
63-
with:
64-
coverage: "none"
65-
php-version: "${{ matrix.php-version }}"
66-
67-
- name: "Cache dependencies installed with composer"
68-
uses: "actions/cache@v2"
69-
with:
70-
path: "~/.composer/cache"
71-
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
72-
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
73-
74-
- name: "Install dependencies with composer"
75-
run: "composer install --no-interaction --no-progress --no-suggest"
58+
- name: Checkout code
59+
uses: actions/checkout@v2
7660

77-
- name: "Run a static analysis with vimeo/psalm"
78-
run: "vendor/bin/psalm --show-info=false --stats --output-format=github --threads=4"
61+
- name: Psalm
62+
uses: docker://vimeo/psalm-github-actions

0 commit comments

Comments
 (0)