Skip to content

updates to work with package psr/log from ~1.0 to ~3.0 #5

updates to work with package psr/log from ~1.0 to ~3.0

updates to work with package psr/log from ~1.0 to ~3.0 #5

Workflow file for this run

name: PHP Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: true
name: "PHP-${{ matrix.php-versions }}/PsrLog-${{ matrix.psr-log }}: tests"
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
psr-log: ['~1.0', '~2.0', '~3.0']
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phplint, phpstan, phpunit:10
extensions: redis
- name: Install dependencies
run: composer install -n
- name: Update Composer package psr/log
run: composer update psr/log:${{ matrix.psr-log }}
- name: Setup problem matchers for phplint
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Run phplint
run: phplint --no-cache lib vendor
- name: Setup problem matchers for PHPStan
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Run PHPStan
run: phpstan analyse lib --memory-limit=-1 -l1
- name: Install redis
run: sudo apt-get install -y redis-server
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Run PHPunit
run: phpunit --configuration phpunit.xml.dist
phpcs:
if: false # Disable this job since there are too many coding style violations.
runs-on: ubuntu-latest
continue-on-error: true
name: "PHPCS"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup PHPCS
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: cs2pr, phpcs
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Run PHPCS
run: phpcs -q --report=checkstyle lib | cs2pr