11name : build
22on :
3+ workflow_dispatch :
34 pull_request :
45 branches : [ "master" ]
56 push :
2223 - name : Setup PHP
2324 uses : shivammathur/setup-php@v2
2425 with :
25- php-version : ' 8.1 '
26+ php-version : ' 8.2 '
2627 coverage : none
2728 tools : composer-normalize
2829 env :
3940 - name : Setup PHP
4041 uses : shivammathur/setup-php@v2
4142 with :
42- php-version : ' 8.1 '
43+ php-version : ' 8.2 '
4344 coverage : none
4445 tools : cs2pr, phpcs
4546 env :
5657 - name : Setup PHP
5758 uses : shivammathur/setup-php@v2
5859 with :
59- php-version : ' 8.1 '
60+ php-version : ' 8.2 '
6061 coverage : none
6162 tools : cs2pr, php-cs-fixer
6263 env :
@@ -73,15 +74,15 @@ jobs:
7374 - name : Setup PHP
7475 uses : shivammathur/setup-php@v2
7576 with :
76- php-version : ' 8.1 '
77+ php-version : ' 8.2 '
7778 coverage : none
7879 tools : composer:v2, phpstan
79- extensions : soap
80+ extensions : soap, gd
8081 env :
8182 fail-fast : true
8283 - name : Get composer cache directory
8384 id : composer-cache
84- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
85+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
8586 - name : Cache dependencies
8687 uses : actions/cache@v3
8788 with :
9899 runs-on : " ubuntu-latest"
99100 strategy :
100101 matrix :
101- php-versions : ['7.3', '7.4', '8.0', '8.1']
102+ php-versions : ['7.3', '7.4', '8.0', '8.1', '8.2' ]
102103 steps :
103104 - name : Checkout
104105 uses : actions/checkout@v3
@@ -114,7 +115,7 @@ jobs:
114115 php-version : ${{ matrix.php-versions }}
115116 coverage : xdebug
116117 tools : composer:v2
117- extensions : soap
118+ extensions : soap, gd
118119 env :
119120 fail-fast : true
120121 - name : Install SAT XML resources
@@ -130,7 +131,7 @@ jobs:
130131 fi
131132 - name : Get composer cache directory
132133 id : composer-cache
133- run : echo "::set-output name= dir:: $(composer config cache-files-dir)"
134+ run : echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
134135 - name : Cache dependencies
135136 uses : actions/cache@v3
136137 with :
@@ -142,6 +143,7 @@ jobs:
142143 - name : Tests (phpunit)
143144 run : vendor/bin/phpunit --testdox --verbose --coverage-clover=build/coverage-clover.xml
144145 - name : Upload code coverage to scrutinizer
146+ if : ${{ !env.ACT }} # do not run if using nektos/act
145147 uses : sudo-bot/action-scrutinizer@latest
146148 with :
147149 cli-args : " --format=php-clover build/coverage-clover.xml"
0 commit comments