Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ClassicPress Directory Coding Standard checks. | |
on: pull_request | |
jobs: | |
phpcs: | |
name: CPCS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: CPCS get rules | |
run: | | |
wget https://raw.githubusercontent.com/ClassicPress/ClassicPress-Coding-Standards/main/phpcs.xml | |
sed -i '/^\t<!-- start config -->.*/a\ | |
<file>.</file> | |
' phpcs.xml | |
sed -i '/MY_DOMAIN/ s//xsx-under-construction/' phpcs.xml | |
cat phpcs.xml | |
- name: CPCS checks | |
uses: 10up/wpcs-action@stable | |
with: | |
use_local_config: true |