From 73ea6784b334130ecbaa8909d12d504743ecf082 Mon Sep 17 00:00:00 2001 From: Jaapio Date: Thu, 26 Sep 2019 21:11:19 +0200 Subject: [PATCH] Add workflow to ensure checks --- .github/workflows/push.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..4e53593 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,35 @@ +on: push +name: Qa workflow +jobs: + qa-checks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: composer + uses: docker://composer + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: install --no-interaction --prefer-dist --optimize-autoloader + - name: Code style check + uses: docker://phpdoc/phpcs-ga:master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: -d memory_limit=1024M -s + - name: composer-require-checker + uses: docker://phpga/composer-require-checker-ga + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: check --config-file ./composer-require-config.json composer.json + - name: Psalm + uses: docker://mickaelandrieu/psalm-ga + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: PHPStan + uses: docker://oskarstark/phpstan-ga + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: analyse src --level max --configuration phpstan.neon