run phpcs also on pull_requests

This commit is contained in:
Matthias Pfefferle 2022-12-23 12:14:48 +01:00
parent 733bc88faf
commit 6b15d8d158
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,7 @@
name: PHP_CodeSniffer
on: push
on:
push:
pull_request:
jobs:
phpcs:
runs-on: ubuntu-latest
@ -19,7 +21,7 @@ jobs:
uses: pat-s/always-upload-cache@v1.1.4
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use the hash of composer.json as the key for your cache if you do not commit composer.lock.
# Use the hash of composer.json as the key for your cache if you do not commit composer.lock.
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
#key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

View file

@ -1,7 +1,7 @@
name: Unit Testing
on:
push:
pull_request:
push:
pull_request:
jobs:
phpunit:
runs-on: ubuntu-latest