-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI check for newspack-blocks textdomain (#44323)
* Move newspack block sync to build instead of install * Add phpcs and run step for newspack-blocks * Fix workflow name * TEMP: remove phpcbf to trigger build failure * Add back phpcbf with error condition * TEMP: remove newspack-blocks sync to test build failure * Add back sync step * Fail build script on errors. * Add helpful error message to build failure * Add back composer install * Use exitCode, add error message * Explicitly call sync instead of using prescript Prescript will be removed in the future (yarn2)
- Loading branch information
1 parent
bd71a36
commit 5012986
Showing
5 changed files
with
73 additions
and
7 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
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 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="newspack-blocks"> | ||
<description>Detect issues with newspack blocks sync</description> | ||
|
||
<rule ref="WordPress.WP.I18n"> | ||
<properties> | ||
<property name="text_domain" type="array"> | ||
<element value="full-site-editing"/> | ||
</property> | ||
</properties> | ||
</rule> | ||
|
||
<file>../full-site-editing-plugin/newspack-blocks/synced-newspack-blocks</file> | ||
</ruleset> |
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