Skip to content

1.9.0

1.9.0 #97

Workflow file for this run

name: CheckStyleAndLint
on:
pull_request:
paths:
- "src/**.php"
- "example/**.php"
jobs:
phpcs:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.4, 8.1, 8.2, 8.3]
stability: [prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: cs2pr, phplint, phpcs
- name: Run phplint
run: phplint --no-configuration --no-cache --no-interaction ./src/* ./example/*
- name: Run phpcs
run: phpcs -q --report=checkstyle --extensions=php ./src/* | cs2pr