--- /dev/null
+name: Code Style
+
+on:
+ push:
+ branches:
+ - "5.2"
+ - "5.3"
+ - master
+ pull_request:
+
+jobs:
+ php:
+ name: Run PHP CodeSniffer
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - run: git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
+ - uses: chekalsky/phpcs-action@e269c2f264f400adcda7c6b24c8550302350d495
on:
push:
+ branches:
+ - "5.2"
+ - "5.3"
+ - master
pull_request:
jobs:
--- /dev/null
+<?xml version="1.0"?>
+<ruleset>
+ <file>files/</file>
+ <arg name="extensions" value="php" />
+ <arg value="p"/>
+ <arg name="basepath" value="."/>
+
+ <rule ref="./WCF/CodeSniff/WCF/ruleset.xml"/>
+</ruleset>
+++ /dev/null
-language: php
-sudo: false
-php:
- - 7.4
- - 7.2
-before_install:
- - export PATH="$PATH:$(composer global config bin-dir --absolute)"
- - composer global require "squizlabs/php_codesniffer=3.*"
- - phpenv rehash
-before_script:
- - git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
-script:
- - phpcs -p --extensions=php --standard="`pwd`/WCF/CodeSniff/WCF" files