@@ -2,54 +2,66 @@ name: PHP Composer
22
33on :
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
1515jobs :
1616 tests_unit :
1717
1818 runs-on : ubuntu-latest
19+ continue-on-error : ${{ matrix.experimental }}
1920 strategy :
2021 matrix :
21- php-versions : ['7.3', '7.4', '8.0','8.1']
22- phpunit-versions :
23- - ' 8.5.15'
24- - ' 9.0'
25-
22+ php-versions : ['7.3', '7.4', '8.0']
23+ phpunit-versions : ['8.5.15']
24+ experimental : [false]
2625 include :
27- - php-versions : ' 5.6'
28- phpunit-versions : ' 5.7.27'
29- - php-versions : ' 7.0'
30- phpunit-versions : ' 6.5.14'
26+ - php-versions : ' 5.6'
27+ phpunit-versions : ' 5.7.27'
28+ experimental : false
29+ - php-versions : ' 7.0'
30+ phpunit-versions : ' 6.5.14'
31+ experimental : false
32+ - php-versions : ' 8.1'
33+ phpunit-versions : ' 10.5.17'
34+ experimental : true
35+ - php-versions : ' 8.2'
36+ phpunit-versions : ' 11.1.1'
37+ experimental : true
3138
32-
3339 name : Php Version ${{matrix.php-versions }} / php Unit ${{ matrix.phpunit-versions }}
3440 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
41+ - uses : actions/checkout@v4
42+ - name : Setup PHP with PECL extension
43+ uses : shivammathur/setup-php@v2
44+ with :
45+ php-version : ${{ matrix.php-versions }}
46+ tools : phpunit:${{ matrix.phpunit-versions }}
47+
48+ - name : php version
49+ run : php -v
50+
51+
52+ - if : ${{ matrix.php-versions < '8.1' }}
53+ name : Run test suite
54+ run : phpunit --bootstrap tests/config.php tests --configuration tests/phpunit.xml
4455
45- - name : Run test suite
46- run : phpunit --bootstrap tests/config.php tests --configuration tests/phpunit.xml
56+ - if : ${{ matrix.php-versions >= '8.1' }}
57+ name : Run test suite (experimental)
58+ run : phpunit --bootstrap tests/config.php tests --configuration tests/phpunit_experimental.xml
4759
4860 sonarcloud :
49- runs-on : ubuntu-latest
50- continue-on-error : true
51- steps :
52- - uses : actions/checkout@v3
61+ runs-on : ubuntu-latest
62+ continue-on-error : true
63+ steps :
64+ - uses : actions/checkout@v4
5365 with :
5466 # Disabling shallow clone is recommended for improving relevancy of reporting
5567 fetch-depth : 0
@@ -66,10 +78,10 @@ jobs:
6678 -Dsonar.test.exclusions=tests/**
6779 -Dsonar.tests=tests/
6880 -Dsonar.verbose=true
69-
81+
7082 release :
7183
72- runs-on : ubuntu-18.04
84+ runs-on : ubuntu-latest
7385 needs : tests_unit
7486 if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
7587 steps :
8698 git config user.name "GitHub Actions"
8799 git add .
88100 git commit -m "[Automated Release Action]"
89- git push origin HEAD:master
90-
101+ git push origin HEAD:master
0 commit comments