11name : build
22on :
3+ workflow_dispatch :
34 pull_request :
45 branches : [ "main" ]
56 push :
2122 - name : Setup PHP
2223 uses : shivammathur/setup-php@v2
2324 with :
24- php-version : ' 8.1 '
25+ php-version : ' 8.2 '
2526 coverage : none
26- tools : composer:v2, cs2pr, phpcs
27+ tools : cs2pr, phpcs
2728 env :
2829 fail-fast : true
2930 - name : Code style (phpcs)
3839 - name : Setup PHP
3940 uses : shivammathur/setup-php@v2
4041 with :
41- php-version : ' 8.1 '
42+ php-version : ' 8.2 '
4243 coverage : none
43- tools : composer:v2, cs2pr, php-cs-fixer
44+ tools : cs2pr, php-cs-fixer
4445 env :
4546 fail-fast : true
4647 - name : Code style (php-cs-fixer)
@@ -55,14 +56,15 @@ jobs:
5556 - name : Setup PHP
5657 uses : shivammathur/setup-php@v2
5758 with :
58- php-version : ' 8.1 '
59+ php-version : ' 8.2 '
5960 coverage : none
6061 tools : composer:v2, phpstan
6162 env :
6263 fail-fast : true
6364 - name : Get composer cache directory
6465 id : composer-cache
65- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
66+ shell : bash
67+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
6668 - name : Cache dependencies
6769 uses : actions/cache@v3
6870 with :
@@ -109,7 +111,8 @@ jobs:
109111 sudo apt-get install -y poppler-utils
110112 - name : Get composer cache directory
111113 id : composer-cache
112- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
114+ shell : bash
115+ run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
113116 - name : Cache dependencies
114117 uses : actions/cache@v3
115118 with :
@@ -119,4 +122,4 @@ jobs:
119122 - name : Install project dependencies
120123 run : composer upgrade --no-interaction --no-progress --prefer-dist
121124 - name : Tests (phpunit)
122- run : vendor/bin/phpunit --testdox --verbose
125+ run : vendor/bin/phpunit --testdox --verbose
0 commit comments