Skip to content

Commit

Permalink
FIX PHP Compatibility Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed May 2, 2023
1 parent e7c9fa7 commit 910aef7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/php-compatibility-7.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
9 changes: 6 additions & 3 deletions .github/workflows/php-compatibility-7.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
9 changes: 6 additions & 3 deletions .github/workflows/php-compatibility-8.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
9 changes: 6 additions & 3 deletions .github/workflows/php-compatibility-8.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/

0 comments on commit 910aef7

Please sign in to comment.