build: bump phpstan/phpstan from 1.11.7 to 1.12.2 #131
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# follows https://www.php.net/supported-versions.php | |
php-versions: ['8.1', '8.2', '8.3'] | |
phpunit-versions: ['latest'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
# extensions: mbstring, intl | |
ini-values: post_max_size=256M, max_execution_time=180 | |
coverage: xdebug | |
tools: php-cs-fixer, phpunit | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Install Composer dependencies | |
uses: ramsey/composer-install@v3 | |
- name: Run test suite | |
run: composer run-script test | |
- uses: codecov/codecov-action@v4 | |
if: matrix.php-versions == '8.1' | |
with: | |
# Comma-separated list of files to upload | |
files: ./tmp/code-coverage.xml |