diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index e69242a6..b0271591 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -1,7 +1,9 @@ --- name: Linting jobs -on: [push] +on: + - push + - pull_request jobs: validate-composer: @@ -42,3 +44,12 @@ jobs: - uses: actions/checkout@v1 - name: Check markdown uses: pipeline-components/remark-lint@master + + php-compitibility: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1 + - name: Check php compatibility + uses: pipeline-components/php-codesniffer@master + with: + options: "-s -p --colors --extensions=php --standard=PHPCompatibility --runtime-set testVersion '5.3-7.4'"