From f1dfdeed27b3fb64ab8b27a6568f61619dfd353a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Im=C3=A8ne?= Date: Thu, 28 Dec 2023 10:21:13 +0100 Subject: [PATCH] PRE-2117: add php 8 compatibility --- .github/workflows/payplug-ci.yml | 49 ++++++++++++++------------------ 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/.github/workflows/payplug-ci.yml b/.github/workflows/payplug-ci.yml index 067397c..c7d61b9 100644 --- a/.github/workflows/payplug-ci.yml +++ b/.github/workflows/payplug-ci.yml @@ -2,13 +2,13 @@ name: PHP Composer on: push: - branches: + branches: - master - develop tags: - "*" pull_request: - branches: + branches: - master - develop @@ -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 @@ -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: @@ -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 \ No newline at end of file