Skip to content

Add override attribute psalm errors to baseline #20

Add override attribute psalm errors to baseline

Add override attribute psalm errors to baseline #20

Workflow file for this run

name: Testing
on:
push:
branches: [ release ]
pull_request:
branches: [ release ]
jobs:
testing:
name: Testing on PHP 8.3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: mbstring
ini-values: opcache.jit_buffer_size=256M, opcache.jit=1235, pcre.jit=1
coverage: pcov
tools: cs2pr
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Get Composer Cache Directory
id: composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer packages
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache-dir.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHP CS Fixer
run: |
php vendor/bin/php-cs-fixer fix \
--format=checkstyle \
--dry-run \
--diff \
| cs2pr
- name: Run Psalm analysis
run: |
php vendor/bin/psalm \
--output-format=checkstyle \
| cs2pr
- name: PHP Security Checker
uses: StephaneBour/actions-php-security-checker@1.2
- name: Run PHPUnit tests
run: |
php vendor/bin/simple-phpunit \
--coverage-text \
--coverage-html=coverage/phpunit/html \
--coverage-clover=coverage/phpunit/clover.xml
- uses: actions/upload-artifact@v1
with:
name: Coverage report
path: coverage