Skip to content

Update actions

Update actions #25

Workflow file for this run

name: Code Style
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.pull_request.draft == false
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup PHP
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2
with:
php-version: 8.1
coverage: none # disable xdebug, pcov
tools: cs2pr
- name: Composer install
uses: ramsey/composer-install@v3
- name: Run php-cs-fixer
run: vendor/bin/php-cs-fixer check --ansi --diff --format=checkstyle | cs2pr