run also on PR
This commit is contained in:
parent
71f3a47589
commit
16b52c0940
2 changed files with 6 additions and 4 deletions
6
.github/workflows/phpcs.yml
vendored
6
.github/workflows/phpcs.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
name: PHP_CodeSniffer
|
name: PHP_CodeSniffer
|
||||||
on: push
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
jobs:
|
jobs:
|
||||||
phpcs:
|
phpcs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -19,7 +21,7 @@ jobs:
|
||||||
uses: pat-s/always-upload-cache@v1.1.4
|
uses: pat-s/always-upload-cache@v1.1.4
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
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.json') }}
|
||||||
#key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
#key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||||
restore-keys: ${{ runner.os }}-composer-
|
restore-keys: ${{ runner.os }}-composer-
|
||||||
|
|
4
.github/workflows/phpunit.yml
vendored
4
.github/workflows/phpunit.yml
vendored
|
@ -1,7 +1,7 @@
|
||||||
name: Unit Testing
|
name: Unit Testing
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
jobs:
|
jobs:
|
||||||
phpunit:
|
phpunit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue