Skip to content

Bump phpstan/phpstan-deprecation-rules from 1.2.0 to 1.2.1 #502

Bump phpstan/phpstan-deprecation-rules from 1.2.0 to 1.2.1

Bump phpstan/phpstan-deprecation-rules from 1.2.0 to 1.2.1 #502

Workflow file for this run

name: build
on: [push]
jobs:
coding-standards:
name: Coding Standards Check
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
- name: Install composer dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: locked
composer-options: --no-ansi --no-interaction --no-progress
- name: Run ecs check
run: vendor/bin/ecs check
static-analysis:
name: Static Analysis
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
- name: Install composer dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: locked
composer-options: --no-ansi --no-interaction --no-progress
- name: Run PHPStan analyse
run: vendor/bin/phpstan analyse --memory-limit 2G
- name: Run Psalm analyse
run: vendor/bin/psalm
test:
name: Tests
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
dependencies:
- highest
- locked
operating-system:
- ubuntu-latest
php-version:
- 8.1
- 8.2
- 8.3
- 8.4
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Initialize tests
run: make initialize
- name: Install composer dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: --no-ansi --no-interaction --no-progress
- name: Run unit tests
run: vendor/bin/phpunit --testsuite Unit
- name: Run integration tests
run: vendor/bin/phpunit --testsuite Integration
coverage:
name: Tests Coverage
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: pcov
- name: Initialize tests
run: make initialize
- name: Install composer dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: locked
composer-options: --no-ansi --no-interaction --no-progress
- name: PHPUnit run with coverage
run: vendor/bin/phpunit --coverage-clover=clover.xml
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: clover.xml
verbose: true