11# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
22
33on :
4- pull_request :
54 push :
5+ branches :
6+ - main
7+ pull_request :
68 schedule :
79 - cron : ' 3 3 * * 1'
810
@@ -14,11 +16,11 @@ jobs:
1416 runs-on : ubuntu-22.04
1517 strategy :
1618 matrix :
17- php-version : [ '5.6', '7.0', '7.1', '7. 2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
19+ php-version : [ '7. 2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3 ' ]
1820
1921 steps :
2022 - name : Checkout
21- uses : actions/checkout@v3
23+ uses : actions/checkout@v4
2224
2325 - name : Install PHP
2426 uses : shivammathur/setup-php@v2
@@ -39,29 +41,25 @@ jobs:
3941 strategy :
4042 fail-fast : false
4143 matrix :
42- php-version : [ '5.6', '7.0', '7.1', '7.2', '7.3' ]
43- coverage : [ 'none' ]
44- include :
45- - php-version : ' 7.4'
46- coverage : xdebug
44+ php-version : [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
4745
4846 steps :
4947 - name : Checkout
50- uses : actions/checkout@v3
48+ uses : actions/checkout@v4
5149
5250 - name : Install PHP
5351 uses : shivammathur/setup-php@v2
5452 with :
5553 php-version : ${{ matrix.php-version }}
5654 ini-values : error_reporting=E_ALL
5755 tools : composer:v2
58- coverage : " ${{ matrix.coverage }} "
56+ coverage : none
5957
6058 - name : Show the Composer configuration
6159 run : composer config --global --list
6260
6361 - name : Cache dependencies installed with composer
64- uses : actions/cache@v3
62+ uses : actions/cache@v4
6563 with :
6664 path : ~/.cache/composer
6765 key : php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
7472 composer show;
7573
7674 - name : Run Tests
77- run : ./vendor/bin/phpunit --coverage-clover build/coverage/xml
78-
79- - name : Upload coverage results to Codacy
80- env :
81- CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_PROJECT_TOKEN }}
82- if : " ${{ matrix.coverage != 'none' && env.CODACY_PROJECT_TOKEN != '' }}"
83- run : |
84- ./vendor/bin/codacycoverage clover build/coverage/xml
75+ run : ./vendor/bin/phpunit
8576
8677 static-analysis :
8778 name : Static Analysis
@@ -93,17 +84,15 @@ jobs:
9384 strategy :
9485 fail-fast : false
9586 matrix :
96- include :
97- - command : sniffer
98- php-version : ' 7.4'
99- - command : fixer
100- php-version : ' 7.4'
101- - command : stan
102- php-version : ' 7.4'
87+ command :
88+ - fixer
89+ - stan
90+ php-version :
91+ - ' 8.3'
10392
10493 steps :
10594 - name : Checkout
106- uses : actions/checkout@v3
95+ uses : actions/checkout@v4
10796
10897 - name : Install PHP
10998 uses : shivammathur/setup-php@v2
@@ -116,7 +105,7 @@ jobs:
116105 run : composer config --global --list
117106
118107 - name : Cache dependencies installed with composer
119- uses : actions/cache@v3
108+ uses : actions/cache@v4
120109 with :
121110 path : ~/.cache/composer
122111 key : php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
@@ -130,7 +119,7 @@ jobs:
130119
131120 - name : Install development tools
132121 run : |
133- phive --no-progress install --trust-gpg-keys BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,A972B9ABB95D0B760B51442231C7E470E2138192,D32680D5957DC7116BE29C14CF1A108D0E7AE720
122+ phive --no-progress install --trust-gpg-keys BBAB5DF0A0D6672989CF1869E82B2FB314E9906E
134123
135124 - name : Run Command
136125 run : composer ci:php:${{ matrix.command }}
0 commit comments