Add wpdc_join_discussion_link_html filter #300
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: WP-Discourse Formatting | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Formatting on PHP ${{ matrix.php }} | |
strategy: | |
matrix: | |
include: | |
- php: '5.6' | |
- php: '7.0' | |
- php: '7.4' | |
- php: '8.0' | |
sniff: true | |
jshint: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Syntax Check | |
run: | | |
find -L . -name '*.php' -not -path "./vendor/*" -not -path "./tests/*" -print0 | xargs -0 -n 1 -P 4 php -l | |
- name: Install Composer | |
if: 'matrix.sniff' | |
uses: ramsey/composer-install@v2 | |
with: | |
dependency-versions: 'highest' | |
composer-options: '--ignore-platform-reqs' | |
- name: WordPress Coding Standards | |
if: 'matrix.sniff' | |
run: | | |
vendor/bin/phpcs -p -s -v -n . -d error_reporting=E_ALL^E_DEPRECATED | |
- name: JSHint | |
if: 'matrix.jshint' | |
run: | | |
sudo npm install -g jshint | |
wget https://develop.svn.wordpress.org/trunk/.jshintrc | |
jshint . |