Skip to content

Commit

Permalink
Use official Github Action
Browse files Browse the repository at this point in the history
It is more concise.
  • Loading branch information
greg0ire committed Oct 14, 2020
1 parent 9033b95 commit 78850f4
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,8 @@ jobs:
- "7.4"

steps:
- name: "Checkout code"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

- name: "Install dependencies with composer"
run: "composer install --no-interaction --no-progress --no-suggest"
- name: Checkout code
uses: actions/checkout@v2

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

0 comments on commit 78850f4

Please sign in to comment.