Skip to content

feat: Add support for phpstan 2.0, drop support for older versions. #40

feat: Add support for phpstan 2.0, drop support for older versions.

feat: Add support for phpstan 2.0, drop support for older versions. #40

Workflow file for this run

name: Tests
on:
pull_request: null
push:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.3']
name: Tests on PHP ${{ matrix.php-versions }}
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
- name: Load dependencies from cache
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php${{ matrix.php-versions }}-composer-
- run: composer install --prefer-dist --no-progress --no-suggest
- run: php vendor/bin/phpunit
tests_lowest_dependencies:
runs-on: ubuntu-latest
name: Tests with lowest dependencies
steps:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
- name: Load dependencies from cache
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php8.3-lowest-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php8.3-lowest-composer-
- run: composer update --no-progress --no-suggest --prefer-lowest
- run: php vendor/bin/phpunit