Skip to content

Merge pull request #99 from Hi-Folks/feat/phpstan2 #290

Merge pull request #99 from Hi-Folks/feat/phpstan2

Merge pull request #99 from Hi-Folks/feat/phpstan2 #290

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.3, 8.4, 8.5]
exclude:
- os: windows-latest
php: 8.2
- os: windows-latest
php: 8.3
name: P${{ matrix.php }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, iconv, fileinfo
coverage: xdebug
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: composer install --prefer-dist --no-interaction
- name: Execute tests
run: composer test
- name: Execute Static Code Analysis
run: composer phpstan