Merge pull request #256 from asgrim/dependabot/composer/mezzio/mezzio… #749
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Analysis | |
on: | |
push: | |
pull_request: | |
jobs: | |
static-analysis: | |
name: "Static Analysis" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "8.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.composer/cache | |
vendor | |
key: php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }} | |
restore-keys: php-${{ matrix.php-version }}- | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction | |
- name: Run static analysis check | |
run: vendor/bin/psalm |