mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-01 16:51:18 +03:00
parent
52964910d1
commit
122305679c
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -43,6 +43,12 @@ jobs:
|
||||||
composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction
|
composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction
|
||||||
echo "${PWD}/mu-plugins/vendor/bin" >> $GITHUB_PATH
|
echo "${PWD}/mu-plugins/vendor/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Run PHPCS on changed files
|
||||||
|
run: |
|
||||||
|
touch $GITHUB_WORKSPACE/tmp.php
|
||||||
|
export CHANGED_FILES=$(git diff --name-only --diff-filter=AM remotes/origin/${{ github.base_ref }} | tr '\n' ' ')
|
||||||
|
phpcs -q -n --report=checkstyle $GITHUB_WORKSPACE/tmp.php $(echo $CHANGED_FILES) | cs2pr
|
||||||
|
|
||||||
phpunit:
|
phpunit:
|
||||||
name: PHP Unit Tests
|
name: PHP Unit Tests
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue