Run PHPStan after Codesniffer in GitHub Actions test and delivery workflow.

This commit is contained in:
Michael Stenta 2022-09-12 10:37:59 -04:00
parent a0accbd38f
commit 059e058b6c
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,7 @@ jobs:
outputs:
farmos_version: ${{ env.FARMOS_VERSION }}
sniff:
name: Run PHP Codesniffer
name: Run PHP Codesniffer and PHPStan
runs-on: ubuntu-latest
needs: build
steps:
@ -73,6 +73,8 @@ jobs:
run: docker load < /tmp/farmos-2x-dev.tar
- name: Run PHP CodeSniffer
run: docker run farmos/farmos:2.x-dev phpcs /opt/drupal/web/profiles/farm
- name: Run PHPStan
run: docker run farmos/farmos:2.x-dev phpstan analyze /opt/drupal/web/profiles/farm
test:
name: Run PHPUnit tests
runs-on: ubuntu-latest