From 6b15d8d15826000c63278e4f4d88c5cadcbaf88c Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 23 Dec 2022 12:14:48 +0100 Subject: [PATCH] run phpcs also on pull_requests --- .github/workflows/phpcs.yml | 6 ++++-- .github/workflows/phpunit.yml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 870b0ee..b7392e1 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -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- diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 0756e1f..4c70a1e 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -1,7 +1,7 @@ name: Unit Testing on: - push: - pull_request: + push: + pull_request: jobs: phpunit: runs-on: ubuntu-latest