Files
web/.github/workflows/phpstan.yml
T
Christian König 44fca45c82 Don't fix PHP to 8.0
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-12-08 21:25:49 +01:00

27 lines
694 B
YAML

name: PHPStan
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3.0.11
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run phpstan
run: composer run-script phpstan