Skip to content

Fix deprecation error message trigger logic #54

Fix deprecation error message trigger logic

Fix deprecation error message trigger logic #54

name: "Continuous Integration"
on:
pull_request:
push:
branches:
- "*.*.x"
- "master"
jobs:
# phpunit:
# name: "PHPUnit tests"
#
# runs-on: ${{ matrix.operating-system }}
#
# strategy:
# matrix:
# dependencies:
# - "lowest"
# - "highest"
# - "locked"
# php-version:
# - "8.1"
# - "8.2"
# operating-system:
# - "ubuntu-latest"
# - "windows-latest"
#
# steps:
# - name: "Checkout"
# uses: "actions/[email protected]"
#
# - name: "Install PHP"
# uses: "shivammathur/[email protected]"
# with:
# coverage: "none"
# php-version: "${{ matrix.php-version }}"
# ini-values: memory_limit=-1
#
# - name: "Install dependencies"
# uses: "ramsey/[email protected]"
# with:
# dependency-versions: "${{ matrix.dependencies }}"
#
# - name: "Run tests"
# run: "vendor/bin/phpunit"
static-analysis-phpstan:
name: "Static Analysis by PHPStan"
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.1"
- "8.2"
operating-system:
- "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
- name: "Install dependencies"
uses: "ramsey/[email protected]"
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: "PHPStan"
run: "vendor/bin/phpstan analyse --memory-limit=-1"
lint:
name: "Lint"
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.1"
operating-system:
- "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/[email protected]"
- name: "Install PHP"
uses: "shivammathur/[email protected]"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
- name: "Install dependencies"
uses: "ramsey/[email protected]"
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: "Lint & validate composer.json"
run: "composer validate && composer normalize"
- name: "Check coding style"
run: "vendor/bin/php-cs-fixer fix"
- name: "Check architectural rules"
run: "vendor/bin/phparkitect check"