diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml index 01f5a6eb89..484aef586a 100644 --- a/.github/workflows/qa.yaml +++ b/.github/workflows/qa.yaml @@ -1,22 +1,40 @@ -on: [push, pull_request] +# DO NOT EDIT THIS FILE! +# +# It's auto-generated by sonata-project/dev-kit package. + name: Quality assurance + +on: + push: + branches: + - master + - 3.x + pull_request: + jobs: phpstan: name: PHPStan + runs-on: ubuntu-latest + steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 + - name: PHPStan - uses: "docker://oskarstark/phpstan-ga" + uses: docker://oskarstark/phpstan-ga env: REQUIRE_DEV: true with: args: analyse -c .phpstan/phpstan.neon.dist + psalm: name: Psalm + runs-on: ubuntu-latest + steps: - name: Checkout code uses: actions/checkout@v2 + - name: Psalm uses: docker://vimeo/psalm-github-actions diff --git a/Makefile b/Makefile index 2e849e04c9..38c8368510 100644 --- a/Makefile +++ b/Makefile @@ -65,3 +65,7 @@ endif docs: cd docs && sphinx-build -W -b html -d _build/doctrees . _build/html .PHONY: docs + +phpstan: + docker run --env REQUIRE_DEV=true --rm -it -w=/app -v ${PWD}:/app oskarstark/phpstan-ga:latest -c .phpstan/phpstan.neon.dist +.PHONY: phpstan