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 Jan 31, 2024
1 parent 6f879a5 commit f1dfdee
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 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'

include:
php-versions: [ '5.6', '7.0', '7.3', '7.4', '8.0' ]
phpunit-versions: [ '8.5.15' ]
include:
- 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 @@ -86,5 +82,4 @@ jobs:
git config user.name "GitHub Actions"
git add .
git commit -m "[Automated Release Action]"
git push origin HEAD:master
git push origin HEAD:master

0 comments on commit f1dfdee

Please sign in to comment.