Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bring actions setup in line with other plugins #674

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

trepmal
Copy link
Contributor

@trepmal trepmal commented Jun 24, 2021

Aims to bring some GitHub actions setup inline with other Automattic & VIP plugins

@trepmal trepmal marked this pull request as ready for review June 25, 2021 17:00
@trepmal trepmal requested review from htdat and GaryJones June 25, 2021 17:01
Comment on lines +64 to +67
# Check the code-style consistency of the PHP files.
# - name: Check PHP code style
# continue-on-error: true
# run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trepmal
This is how Edit Flow is implementing to check PHPCS for just diff files.

- name: Run PHPCS diff tests
# TODO: remove this condition when a new version of WPCS is released
# @see https://github.com/Automattic/Edit-Flow/issues/638#issuecomment-825511819
if: ${{ matrix.php < 8.0 }}
run: bash bin/phpcs-diff.sh

Ideally, we run PHPCS for all PHP files, but for old plugins like this, it's not productive to detect and fix all PHPCS errors. So I think this approach should be still kept though there may be a better way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants