mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
31 lines
799 B
YAML
31 lines
799 B
YAML
name: PHPCs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [master, main]
|
|
paths: ['web/documentserver-example/php/**']
|
|
pull_request:
|
|
branches: [master, main, develop]
|
|
paths: ['web/documentserver-example/php/**']
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./web/documentserver-example/php
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: '8.2'
|
|
tools: cs2pr, phpcs
|
|
|
|
- name: Run phpcs
|
|
run: |
|
|
phpcs --version
|
|
phpcs -q --extensions=php,module,inc,install,test,profile,theme,info --ignore=node_modules,bower_components,vendor,css,js,lib --standard=./ruleset.xml ./ |