11name : Test Suite
22on :
33 push :
4- branches :
5- - master
4+ branches : [ main ]
65 pull_request :
76
87jobs :
98 test :
10- runs-on : ${{matrix.operating-system}}
9+ runs-on : ubuntu-latest
1110 strategy :
1211 matrix :
13- operating-system : [ ubuntu-latest ]
14- php : [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0" ]
12+ php : [ "7.1", "7.2", "7.3", "7.4", "8.0", "8.1" ]
1513 name : PHP ${{matrix.php }} Unit Test
1614 steps :
17- - uses : actions/checkout@v2
15+ - uses : actions/checkout@v3
1816 - name : Setup PHP
1917 uses : shivammathur/setup-php@v2
2018 with :
2119 php-version : ${{ matrix.php }}
22- - if : ${{ matrix.php != '8.0' }}
23- name : Install Dependencies
24- uses : nick-invision/retry@v1
20+ - name : Install Dependencies
21+ uses : nick-invision/retry@v2
2522 with :
2623 timeout_minutes : 10
2724 max_attempts : 3
2825 command : composer install
29- - if : ${{ matrix.php == '8.0' }}
30- name : Install Dependencies (PHP 8.0)
31- uses : nick-invision/retry@v1
32- with :
33- timeout_minutes : 10
34- max_attempts : 3
35- command : |
36- composer remove --dev --ignore-platform-reqs phpunit/phpunit
37- composer require --dev --ignore-platform-reqs --update-with-all-dependencies phpunit/phpunit:^7
3826 - name : Run Script
3927 run : vendor/bin/phpunit
4028 test_lowest :
41- runs-on : ${{matrix.operating-system}}
29+ runs-on : ubuntu-latest
4230 strategy :
4331 matrix :
44- operating-system : [ ubuntu-latest ]
45- php : [ "5.6", "7.0", "7.1", "7.2" ]
32+ php : [ "7.1", "7.2" ]
4633 name : PHP ${{matrix.php }} Unit Test Prefer Lowest
4734 steps :
48- - uses : actions/checkout@v2
35+ - uses : actions/checkout@v3
4936 - name : Setup PHP
5037 uses : shivammathur/setup-php@v2
5138 with :
5239 php-version : ${{ matrix.php }}
5340 - name : Install Dependencies
54- uses : nick-invision/retry@v1
41+ uses : nick-invision/retry@v2
5542 with :
5643 timeout_minutes : 10
5744 max_attempts : 3
@@ -62,79 +49,33 @@ jobs:
6249 runs-on : ubuntu-latest
6350 strategy :
6451 matrix :
65- operating-system : [ ubuntu-latest ]
66- php : [ "5.6", "7.2" ]
52+ php : [ "7.2" ]
6753 name : PHP ${{ matrix.php }} Unit Test Guzzle 6
6854 steps :
69- - uses : actions/checkout@v2
55+ - uses : actions/checkout@v3
7056 - name : Setup PHP
7157 uses : shivammathur/setup-php@v2
7258 with :
7359 php-version : ${{ matrix.php }}
7460 - name : Install Dependencies
75- uses : nick-invision/retry@v1
61+ uses : nick-invision/retry@v2
7662 with :
7763 timeout_minutes : 10
7864 max_attempts : 3
7965 command : composer require guzzlehttp/guzzle:^6 && composer update
8066 - name : Run Script
8167 run : vendor/bin/phpunit
82- # use dockerfiles for oooooolllllldddd versions of php, setup-php times out for those.
83- test_php55 :
84- name : " PHP 5.5 Unit Test"
85- runs-on : ubuntu-latest
86- steps :
87- - name : Checkout
88- uses : actions/checkout@v2
89- - name : Run Unit Tests
90- uses : docker://php:5.5-cli
91- with :
92- entrypoint : ./.github/actions/unittest/entrypoint.sh
93- test_php55_lowest :
94- name : " PHP 5.5 Unit Test Prefer Lowest"
95- runs-on : ubuntu-latest
96- steps :
97- - name : Checkout
98- uses : actions/checkout@v2
99- - name : Run Unit Tests
100- uses : docker://php:5.5-cli
101- env :
102- composerargs : " --prefer-lowest"
103- with :
104- entrypoint : ./.github/actions/unittest/entrypoint.sh
105- test_php54 :
106- name : " PHP 5.4 Unit Test"
107- runs-on : ubuntu-latest
108- steps :
109- - name : Checkout
110- uses : actions/checkout@v2
111- - name : Run Unit Tests
112- uses : docker://php:5.4-cli
113- with :
114- entrypoint : ./.github/actions/unittest/entrypoint.sh
115- test_php54_lowest :
116- name : " PHP 5.4 Unit Test Prefer Lowest"
117- runs-on : ubuntu-latest
118- steps :
119- - name : Checkout
120- uses : actions/checkout@v2
121- - name : Run Unit Tests
122- uses : docker://php:5.4-cli
123- env :
124- composerargs : " --prefer-lowest"
125- with :
126- entrypoint : ./.github/actions/unittest/entrypoint.sh
12768 style :
12869 runs-on : ubuntu-latest
12970 name : PHP Style Check
13071 steps :
131- - uses : actions/checkout@v2
72+ - uses : actions/checkout@v3
13273 - name : Setup PHP
13374 uses : shivammathur/setup-php@v2
13475 with :
135- php-version : " 7.4 "
76+ php-version : " 8.0 "
13677 - name : Install Dependencies
137- uses : nick-invision/retry@v1
78+ uses : nick-invision/retry@v2
13879 with :
13980 timeout_minutes : 10
14081 max_attempts : 3
0 commit comments