Skip to content

Update phpstan/phpstan requirement from ^1.4 to ^1.4 || ^2.0 #158

Update phpstan/phpstan requirement from ^1.4 to ^1.4 || ^2.0

Update phpstan/phpstan requirement from ^1.4 to ^1.4 || ^2.0 #158

Workflow file for this run

name: Tests
on:
pull_request: null
push:
branches:
- 2.x
schedule:
- cron: "42 3 * * 1"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
composer_version: ['v2']
include:
- description: '(prefer lowest)'
php: '7.4'
composer_version: '2.1.0'
dependencies: 'lowest'
name: PHP ${{ matrix.php }} tests ${{ matrix.description }}
steps:
# checkout git
- uses: actions/checkout@v4
# setup PHP
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:${{ matrix.composer_version }}
coverage: xdebug
- uses: "ramsey/composer-install@v3"
with:
dependency-versions: ${{ matrix.dependencies }}
- run: vendor/bin/phpunit --coverage-clover=coverage.xml
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: './coverage.xml'
fail_ci_if_error: true
Rector and PHP-CS-Fixer:

Check failure on line 49 in .github/workflows/tests.yaml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yaml (Line: 49, Col: 3): The identifier 'Rector and PHP-CS-Fixer' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
name: Code style
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
- uses: "ramsey/composer-install@v3"
- run: vendor/bin/rector --dry-run --ansi && vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run
PHPStan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- uses: "ramsey/composer-install@v3"
- run: vendor/bin/phpstan analyse
Psalm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- uses: "ramsey/composer-install@v3"
- run: vendor/bin/psalm