From 910aef7db01b32adfdc40f054c0a7a971d4df5f1 Mon Sep 17 00:00:00 2001 From: aljawaid <10233708+aljawaid@users.noreply.github.com> Date: Wed, 3 May 2023 00:05:24 +0100 Subject: [PATCH] FIX PHP Compatibility Tests --- .github/workflows/php-compatibility-7.0.yaml | 9 ++++++--- .github/workflows/php-compatibility-7.4.yaml | 9 ++++++--- .github/workflows/php-compatibility-8.0.yaml | 9 ++++++--- .github/workflows/php-compatibility-8.2.yaml | 9 ++++++--- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/.github/workflows/php-compatibility-7.0.yaml b/.github/workflows/php-compatibility-7.0.yaml index 15c3b52..8bbacbf 100644 --- a/.github/workflows/php-compatibility-7.0.yaml +++ b/.github/workflows/php-compatibility-7.0.yaml @@ -2,13 +2,15 @@ name: PHP 7.0 on: push: + pull_request: + branches: [master, main] permissions: contents: read jobs: setup: - name: php compatibility 7.0 + name: PHP Compatibility 7.0 runs-on: ubuntu-latest permissions: contents: read # for checkout to fetch code @@ -22,10 +24,11 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '7.0-' + ini-values: short_open_tag=On coverage: none - - name: php-compatibility run + - name: Run PHP Compatibility uses: pantheon-systems/phpcompatibility-action@v1 with: test-versions: '7.0-' - paths: ${{ github.workspace }}/Plugin.php ${{ github.workspace }}/Controller/ ${{ github.workspace }}/Locale/ + paths: ${{ github.workspace }}/Plugin.php ${{ github.workspace }}/Controller/ ${{ github.workspace }}/Locale/ ${{ github.workspace }}/Helper/ ${{ github.workspace }}/Template/ diff --git a/.github/workflows/php-compatibility-7.4.yaml b/.github/workflows/php-compatibility-7.4.yaml index a6317e3..ed50aea 100644 --- a/.github/workflows/php-compatibility-7.4.yaml +++ b/.github/workflows/php-compatibility-7.4.yaml @@ -2,13 +2,15 @@ name: PHP 7.4 on: push: + pull_request: + branches: [master, main] permissions: contents: read jobs: setup: - name: php compatibility 7.4 + name: PHP Compatibility 7.4 runs-on: ubuntu-latest permissions: contents: read # for checkout to fetch code @@ -22,10 +24,11 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '7.4-' + ini-values: short_open_tag=On coverage: none - - name: php-compatibility run + - name: Run PHP Compatibility uses: pantheon-systems/phpcompatibility-action@v1 with: test-versions: '7.4-' - paths: ${{ github.workspace }}/Plugin.php ${{ github.workspace }}/Controller/ ${{ github.workspace }}/Locale/ + paths: ${{ github.workspace }}/Plugin.php ${{ github.workspace }}/Controller/ ${{ github.workspace }}/Locale/ ${{ github.workspace }}/Helper/ ${{ github.workspace }}/Template/ diff --git a/.github/workflows/php-compatibility-8.0.yaml b/.github/workflows/php-compatibility-8.0.yaml index 3c81743..b3e0553 100644 --- a/.github/workflows/php-compatibility-8.0.yaml +++ b/.github/workflows/php-compatibility-8.0.yaml @@ -2,13 +2,15 @@ name: PHP 8.0 on: push: + pull_request: + branches: [master, main] permissions: contents: read jobs: setup: - name: php compatibility 8.0 + name: PHP Compatibility 8.0 runs-on: ubuntu-latest permissions: contents: read # for checkout to fetch code @@ -22,10 +24,11 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.0-' + ini-values: short_open_tag=On coverage: none - - name: php-compatibility run + - name: Run PHP Compatibility uses: pantheon-systems/phpcompatibility-action@v1 with: test-versions: '8.0-' - paths: ${{ github.workspace }}/Plugin.php ${{ github.workspace }}/Controller/ ${{ github.workspace }}/Locale/ + paths: ${{ github.workspace }}/Plugin.php ${{ github.workspace }}/Controller/ ${{ github.workspace }}/Locale/ ${{ github.workspace }}/Helper/ ${{ github.workspace }}/Template/ diff --git a/.github/workflows/php-compatibility-8.2.yaml b/.github/workflows/php-compatibility-8.2.yaml index 06a94fe..aa698de 100644 --- a/.github/workflows/php-compatibility-8.2.yaml +++ b/.github/workflows/php-compatibility-8.2.yaml @@ -2,13 +2,15 @@ name: PHP 8.2 on: push: + pull_request: + branches: [master, main] permissions: contents: read jobs: setup: - name: php compatibility 8.2 + name: PHP Compatibility 8.2 runs-on: ubuntu-latest permissions: contents: read # for checkout to fetch code @@ -22,10 +24,11 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.2-' + ini-values: short_open_tag=On coverage: none - - name: php-compatibility run + - name: Run PHP Compatibility uses: pantheon-systems/phpcompatibility-action@v1 with: test-versions: '8.2-' - paths: ${{ github.workspace }}/Plugin.php ${{ github.workspace }}/Controller/ ${{ github.workspace }}/Locale/ + paths: ${{ github.workspace }}/Plugin.php ${{ github.workspace }}/Controller/ ${{ github.workspace }}/Locale/ ${{ github.workspace }}/Helper/ ${{ github.workspace }}/Template/