Skip to content

Release 0.3.0

Release 0.3.0 #139

name: Server Linting
on:
workflow_dispatch: { }
pull_request:
types: [ assigned, opened, reopened, ready_for_review, synchronize ]
push:
branches:
- main
paths:
- '**.php'
- '.github/workflows/server-linting.yml'
- 'composer.lock'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
server-linting:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '--skip ci') && !github.event.pull_request.draft }}
strategy:
matrix:
php-versions: [ '8.4' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Check syntax error in sources
run: find ./src/ ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l
- name: Install dependencies
uses: ramsey/composer-install@v3
- name: Check code styles
run: composer cs
- name: Check Static Analysis
run: composer analysis:ci