-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Content Parsers: Update parsers, fix list-item parsing, fix broken ma…
…nifest (#247) * Update parsers This includes the updates from WordPress/wordpress.org#90, a new AttributeParser for attribute-only blocks, and a fix for the ListItem block to allow child lists. Fixes #211 * Add phpunit test infrastructure and tests Pulled from #181 * Remove swag page from manifest * Update content with new parser * Add a phpunit workflow
- Loading branch information
Showing
27 changed files
with
627 additions
and
226 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,34 @@ | ||
name: PHP Unit Tests | ||
|
||
# This workflow is triggered on pushes to trunk, and any PRs. | ||
on: | ||
push: | ||
branches: [trunk] | ||
pull_request: | ||
|
||
jobs: | ||
check: | ||
name: Test PHP | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 | ||
|
||
- name: Install NodeJS | ||
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: yarn | ||
|
||
- name: Install dependencies & setup configs | ||
run: | | ||
yarn setup:tools | ||
- name: Install WordPress | ||
run: | | ||
yarn wp-env start | ||
- name: Running PHP unit tests | ||
run: yarn test:php |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.