@@ -3,43 +3,42 @@ name: Run tests
33on :
44 push :
55 pull_request :
6- types : [opened, synchronize, reopened]
7- branches :
8- - master
96
107jobs :
11- test-php :
12- name : Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
13- if : " !contains(github.event.head_commit.message, '[ci skip]')"
14- runs-on : ${{ matrix.os }}
15- continue-on-error : ${{ matrix.experimental }}
16- strategy :
17- matrix :
18- php-version : ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
19- experimental : [false]
20- composer-options : ['']
21- os : [ubuntu-latest]
22- include :
23- - { php-version: 'nightly', composer-options: '--ignore-platform-req=php', experimental: true, os: ubuntu-latest }
24- steps :
25- - uses : actions/checkout@v3
26- - name : Use php ${{ matrix.php-version }}
27- uses : shivammathur/setup-php@v2
28- with :
29- php-version : ${{ matrix.php-version }}
30- extensions : mbstring
31- coverage : xdebug
32- - name : Cache module
33- uses : actions/cache@v3
34- with :
35- path : ~/.composer/cache/
36- key : composer-cache
37- - name : Install dependencies
38- run : composer install --no-interaction ${{ matrix.composer-options }}
39- - name : Run php tests
40- run : composer run phpunit
41- - name : Send coverage
42- uses : codecov/codecov-action@v3
43- with :
44- flags : unit-${{ matrix.php-version }}-${{ matrix.os }}
45- name : phpunit-${{ matrix.php-version }}-${{ matrix.os }}
8+ test-php :
9+ name : Test on PHP ${{ matrix.php-version }} and ${{ matrix.os }}
10+ runs-on : ${{ matrix.os }}
11+ continue-on-error : ${{ matrix.experimental }}
12+ strategy :
13+ matrix :
14+ php-version : ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
15+ experimental : [false]
16+ composer-options : ['']
17+ os : [ubuntu-latest]
18+ include :
19+ - { php-version: '8.4', composer-options: '--ignore-platform-req=php+', experimental: true, os: ubuntu-latest }
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v4
23+
24+ - name : Set up PHP ${{ matrix.php-version }}
25+ uses : shivammathur/setup-php@v2
26+ with :
27+ php-version : ${{ matrix.php-version }}
28+ extensions : mbstring
29+ coverage : xdebug
30+
31+ - name : Install Composer dependencies
32+ uses : ramsey/composer-install@v2
33+ with :
34+ dependency-versions : highest
35+ composer-options : ${{ matrix.composer-options }}
36+
37+ - name : Run PHP tests
38+ run : composer run phpunit
39+
40+ - name : Send coverage
41+ uses : codecov/codecov-action@v3
42+ with :
43+ flags : unit-${{ matrix.php-version }}-${{ matrix.os }}
44+ name : phpunit-${{ matrix.php-version }}-${{ matrix.os }}
0 commit comments