Skip to content

feat: add testing on phpstan 1 and 2 (#3) #8

feat: add testing on phpstan 1 and 2 (#3)

feat: add testing on phpstan 1 and 2 (#3) #8

Workflow file for this run

name: Tests
on:
push: master
pull_request:
schedule:
- cron: '0 1 0 * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1', '8.2', '8.3' ]
phpstan: [ '^1.0', '^2.0' ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
- run: composer require phpstan/phpstan ${{ matrix.phpstan }}
- run: composer test
format:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1' ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
- run: composer install
- run: composer format
analyse:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1' ]
phpstan: [ '^1.0', '^2.0' ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
- run: composer require phpstan/phpstan ${{ matrix.phpstan }}
- run: composer analyse