Skip to content

Replace php 8.2 migration ruleset by php 8.3 #10

Replace php 8.2 migration ruleset by php 8.3

Replace php 8.2 migration ruleset by php 8.3 #10

Workflow file for this run

name: Testing
on:
push:
branches: [ release ]
pull_request:
branches: [ release ]
jobs:
testing:
name: Testing on PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.1', '8.2']
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
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: 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 --no-suggest
- 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