Update README.MD #170
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: PHPStan | |
# specify when the workflow should be triggered | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
# define the jobs to be executed in the workflow | |
jobs: | |
phpstan: | |
name: PHPStan analyse | |
runs-on: ubuntu-latest | |
# define the steps to be executed as part of the job | |
steps: | |
# checkout code | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# set up PHP environment | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
# install project dependencies | |
- name: Install dependencies | |
run: composer install | |
working-directory: ./backend | |
# run PHPStan analysis | |
- name: Run PHPStan | |
run: ./vendor/bin/phpstan analyse --configuration phpstan.neon | |
working-directory: ./backend |