Skip to content

Commit

Permalink
PRE-2117: add php 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ilajili committed Feb 28, 2024
1 parent 6f879a5 commit 42d9390
Showing 1 changed file with 24 additions and 29 deletions.
53 changes: 24 additions & 29 deletions .github/workflows/payplug-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: PHP Composer

on:
push:
branches:
branches:
- master
- develop
tags:
- "*"
pull_request:
branches:
branches:
- master
- develop

Expand All @@ -18,37 +18,33 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0','8.1']
phpunit-versions:
- '8.5.15'
- '9.0'

php-versions: ['7.3', '7.4', '8.1']
phpunit-versions: ['9.5.10']
include:
- php-versions: '5.6'
phpunit-versions: '5.7.27'
- php-versions: '7.0'
phpunit-versions: '6.5.14'
- php-versions: '5.6'
phpunit-versions: '5.7.27'
- php-versions: '7.0'
phpunit-versions: '6.5.14'


name: Php Version ${{matrix.php-versions }} / php Unit ${{ matrix.phpunit-versions }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit:${{ matrix.phpunit-versions }}

- name: php version
run: php -v
- uses: actions/checkout@v2
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit:${{ matrix.phpunit-versions }}

- name: Run test suite
run: phpunit --bootstrap tests/config.php tests --configuration tests/phpunit.xml
- name: php version
run: php -v

- name: Run test suite
run: phpunit --bootstrap tests/config.php tests --configuration tests/phpunit.xml

sonarcloud:
runs-on: ubuntu-latest
continue-on-error: true
steps:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
Expand All @@ -66,10 +62,10 @@ jobs:
-Dsonar.test.exclusions=tests/**
-Dsonar.tests=tests/
-Dsonar.verbose=true
release:

runs-on: ubuntu-18.04
runs-on: ubuntu-latest
needs: tests_unit
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
Expand All @@ -87,4 +83,3 @@ jobs:
git add .
git commit -m "[Automated Release Action]"
git push origin HEAD:master

0 comments on commit 42d9390

Please sign in to comment.