-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub actions instead of Travis (#21)
- Loading branch information
1 parent
f08602c
commit d4ac210
Showing
8 changed files
with
170 additions
and
125 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Code Quality Checks | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
code-quality: | ||
uses: wp-cli/.github/.github/workflows/reusable-code-quality.yml@main |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Testing | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
schedule: | ||
- cron: "17 1 * * *" # Run every day on a seemly random time. | ||
|
||
jobs: | ||
test: | ||
uses: wp-cli/.github/.github/workflows/reusable-testing.yml@main |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ vendor/ | |
*.swp | ||
*.txt | ||
*.log | ||
composer.lock | ||
composer.lock |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
default: | ||
suites: | ||
default: | ||
contexts: | ||
- WP_CLI\Tests\Context\FeatureContext | ||
paths: | ||
- features |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WP-CLI-cache"> | ||
<description>Custom ruleset for WP-CLI cache-command</description> | ||
|
||
<!-- | ||
############################################################################# | ||
COMMAND LINE ARGUMENTS | ||
For help understanding this file: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml | ||
For help using PHPCS: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage | ||
############################################################################# | ||
--> | ||
|
||
<!-- What to scan. --> | ||
<file>.</file> | ||
|
||
<!-- Show progress. --> | ||
<arg value="p"/> | ||
|
||
<!-- Strip the filepaths down to the relevant bit. --> | ||
<arg name="basepath" value="./"/> | ||
|
||
<!-- Check up to 8 files simultaneously. --> | ||
<arg name="parallel" value="8"/> | ||
|
||
<!-- | ||
############################################################################# | ||
USE THE WP_CLI_CS RULESET | ||
############################################################################# | ||
--> | ||
|
||
<rule ref="WP_CLI_CS"/> | ||
|
||
<!-- | ||
############################################################################# | ||
PROJECT SPECIFIC CONFIGURATION FOR SNIFFS | ||
############################################################################# | ||
--> | ||
|
||
<!-- For help understanding the `testVersion` configuration setting: | ||
https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions --> | ||
<config name="testVersion" value="5.6-"/> | ||
|
||
<!-- Make this sniff slightly less finicky. The WP Core default is 40. --> | ||
<rule ref="Generic.Formatting.MultipleStatementAlignment"> | ||
<properties> | ||
<property name="maxPadding" value="20"/> | ||
</properties> | ||
</rule> | ||
|
||
<!-- Verify that everything in the global namespace is either namespaced or prefixed. | ||
See: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#naming-conventions-prefix-everything-in-the-global-namespace --> | ||
<rule ref="WordPress.NamingConventions.PrefixAllGlobals"> | ||
<properties> | ||
<property name="prefixes" type="array"> | ||
<element value="WP_CLI\Cache"/><!-- Namespaces. --> | ||
<element value="wpcli_cache"/><!-- Global variables and such. --> | ||
</property> | ||
</properties> | ||
</rule> | ||
|
||
<!-- Exclude existing classes from the prefix rule as it would break BC to prefix them now. --> | ||
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound"> | ||
<exclude-pattern>*/src/(Cache|Transient)_Command\.php$</exclude-pattern> | ||
</rule> | ||
|
||
</ruleset> |