11on :
2- - pull_request
3- - push
2+ pull_request :
3+ paths-ignore :
4+ - ' docs/**'
5+ - ' README.md'
6+ - ' CHANGELOG.md'
7+ - ' .gitignore'
8+ - ' .gitattributes'
9+ - ' psalm.xml.dist'
10+
11+ push :
12+ paths-ignore :
13+ - ' docs/**'
14+ - ' README.md'
15+ - ' CHANGELOG.md'
16+ - ' .gitignore'
17+ - ' .gitattributes'
18+ - ' psalm.xml.dist'
419
520name : build
621
@@ -22,40 +37,42 @@ jobs:
2237 php :
2338 - " 7.4"
2439 - " 8.0"
40+ - " 8.1"
41+ - " 8.2"
2542
2643 steps :
27- - name : Checkout
28- uses : actions/checkout@v2
44+ - name : Checkout.
45+ uses : actions/checkout@v3
2946
30- - name : Install PHP
47+ - name : Install PHP with extensions.
3148 uses : shivammathur/setup-php@v2
3249 with :
3350 php-version : ${{ matrix.php }}
3451 ini-values : date.timezone='UTC'
3552 tools : composer:v2
3653 coverage : pcov
3754
38- - name : Determine composer cache directory on Linux
55+ - name : Determine composer cache directory on Linux.
3956 if : matrix.os == 'ubuntu-latest'
4057 run : echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
4158
42- - name : Determine composer cache directory on Windows
59+ - name : Determine composer cache directory on Windows.
4360 if : matrix.os == 'windows-latest'
4461 run : echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
4562
46- - name : Cache dependencies installed with composer
47- uses : actions/cache@v2
63+ - name : Cache dependencies installed with composer.
64+ uses : actions/cache@v3
4865 with :
4966 path : ${{ env.COMPOSER_CACHE_DIR }}
5067 key : php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
5168 restore-keys : |
5269 php${{ matrix.php }}-composer-
5370
54- - name : Update composer
71+ - name : Update composer.
5572 run : composer self-update
5673
57- - name : Install dependencies with composer
74+ - name : Install dependencies with composer.
5875 run : composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
5976
60- - name : Run tests with phpunit
77+ - name : Run tests with phpunit.
6178 run : vendor/bin/phpunit --colors=always
0 commit comments