Skip to content

fix(cs): fixed code-style and static analysis #44

fix(cs): fixed code-style and static analysis

fix(cs): fixed code-style and static analysis #44

Workflow file for this run

name: Check CS
on:
push:
pull_request:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
name: Check code style
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: "8.1"
tools: cs2pr
- name: Install dependencies with composer
run: composer update --no-progress --no-interaction --prefer-dist
- if: ${{ github.base_ref == '' }}
run: composer cscheck
- name: Run diff-sniffer
if: ${{ github.base_ref != '' }}
run: composer cscheck -- --report=checkstyle | cs2pr