Skip to content

Commit 824d32f

Browse files
committed
PRE-2117: add php 8 compatibility
1 parent 6f879a5 commit 824d32f

File tree

1 file changed

+22
-27
lines changed

1 file changed

+22
-27
lines changed

.github/workflows/payplug-ci.yml

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: PHP Composer
22

33
on:
44
push:
5-
branches:
5+
branches:
66
- master
77
- develop
88
tags:
99
- "*"
1010
pull_request:
11-
branches:
11+
branches:
1212
- master
1313
- develop
1414

@@ -18,37 +18,33 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
php-versions: ['7.3', '7.4', '8.0','8.1']
22-
phpunit-versions:
23-
- '8.5.15'
24-
- '9.0'
25-
26-
include:
21+
php-versions: [ '5.6', '7.0', '7.3', '7.4', '8.0' ]
22+
phpunit-versions: [ '8.5.15' ]
23+
include:
2724
- php-versions: '5.6'
2825
phpunit-versions: '5.7.27'
2926
- php-versions: '7.0'
3027
phpunit-versions: '6.5.14'
3128

32-
3329
name: Php Version ${{matrix.php-versions }} / php Unit ${{ matrix.phpunit-versions }}
3430
steps:
35-
- uses: actions/checkout@v2
36-
- name: Setup PHP with PECL extension
37-
uses: shivammathur/setup-php@v2
38-
with:
39-
php-version: ${{ matrix.php-versions }}
40-
tools: phpunit:${{ matrix.phpunit-versions }}
41-
42-
- name: php version
43-
run: php -v
31+
- uses: actions/checkout@v2
32+
- name: Setup PHP with PECL extension
33+
uses: shivammathur/setup-php@v2
34+
with:
35+
php-version: ${{ matrix.php-versions }}
36+
tools: phpunit:${{ matrix.phpunit-versions }}
4437

45-
- name: Run test suite
46-
run: phpunit --bootstrap tests/config.php tests --configuration tests/phpunit.xml
38+
- name: php version
39+
run: php -v
40+
41+
- name: Run test suite
42+
run: phpunit --bootstrap tests/config.php tests --configuration tests/phpunit.xml
4743

4844
sonarcloud:
49-
runs-on: ubuntu-latest
50-
continue-on-error: true
51-
steps:
45+
runs-on: ubuntu-latest
46+
continue-on-error: true
47+
steps:
5248
- uses: actions/checkout@v3
5349
with:
5450
# Disabling shallow clone is recommended for improving relevancy of reporting
@@ -66,10 +62,10 @@ jobs:
6662
-Dsonar.test.exclusions=tests/**
6763
-Dsonar.tests=tests/
6864
-Dsonar.verbose=true
69-
65+
7066
release:
7167

72-
runs-on: ubuntu-18.04
68+
runs-on: ubuntu-latest
7369
needs: tests_unit
7470
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
7571
steps:
@@ -86,5 +82,4 @@ jobs:
8682
git config user.name "GitHub Actions"
8783
git add .
8884
git commit -m "[Automated Release Action]"
89-
git push origin HEAD:master
90-
85+
git push origin HEAD:master

0 commit comments

Comments
 (0)