From b0043931f67207bd44b275d03be446ca9ef45181 Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Thu, 9 Jul 2020 08:32:30 -0700 Subject: [PATCH 1/3] Limit tests to not run on docs only changes --- .github/workflows/end2end-test.yml | 10 ++++++++++ .github/workflows/performance.yml | 5 +++++ .github/workflows/rnmobile-android-runner.yml | 6 ++++++ .github/workflows/rnmobile-ios-runner.yml | 7 ++++++- 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/end2end-test.yml b/.github/workflows/end2end-test.yml index 1fbedb9766d142..ef4296b37087f1 100644 --- a/.github/workflows/end2end-test.yml +++ b/.github/workflows/end2end-test.yml @@ -2,8 +2,18 @@ name: End-to-End Tests on: pull_request: + paths: + - 'lib/**' + - 'packages/**' + - '!packages/**/*.md' + - '!docs/**/*.md' push: branches: [master] + paths: + - 'lib/**' + - 'packages/**' + - '!packages/**/*.md' + - '!docs/**/*.md' jobs: admin-1: diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index c5c6a215a16e08..66df480e9a241c 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -1,6 +1,11 @@ name: Performances Tests on: [pull_request] + paths: + - 'lib/**' + - 'packages/**' + - '!packages/**/*.md' + - '!docs/**/*.md' jobs: performance: diff --git a/.github/workflows/rnmobile-android-runner.yml b/.github/workflows/rnmobile-android-runner.yml index 6475f8a9a84701..5da01384114e55 100644 --- a/.github/workflows/rnmobile-android-runner.yml +++ b/.github/workflows/rnmobile-android-runner.yml @@ -1,5 +1,11 @@ name: React Native E2E Tests (Android) + on: pull_request + paths: + - 'lib/**' + - 'packages/**' + - '!packages/**/*.md' + - '!docs/**/*.md' jobs: test: diff --git a/.github/workflows/rnmobile-ios-runner.yml b/.github/workflows/rnmobile-ios-runner.yml index 3e1961ddd38700..66a21a57b96868 100644 --- a/.github/workflows/rnmobile-ios-runner.yml +++ b/.github/workflows/rnmobile-ios-runner.yml @@ -1,5 +1,10 @@ name: React Native E2E Tests (iOS) on: pull_request + paths: + - 'lib/**' + - 'packages/**' + - '!packages/**/*.md' + - '!docs/**/*.md' jobs: test: @@ -31,7 +36,7 @@ jobs: with: path: packages/react-native-editor/ios/build/gutenberg/Build/Products/Release-iphonesimulator/GutenbergDemo.app key: ${{ runner.os }}-ios-build-${{ hashFiles('ios-checksums.txt') }} - + - name: Restore pods cache uses: actions/cache@v2 with: From bc7c4e4ce9983aef0a8d0621fa5910276e6b84fb Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Thu, 9 Jul 2020 08:40:28 -0700 Subject: [PATCH 2/3] Use blanket exclude markdown, no explicit include --- .github/workflows/end2end-test.yml | 10 ++-------- .github/workflows/performance.yml | 5 +---- .github/workflows/rnmobile-android-runner.yml | 5 +---- .github/workflows/rnmobile-ios-runner.yml | 5 +---- 4 files changed, 5 insertions(+), 20 deletions(-) diff --git a/.github/workflows/end2end-test.yml b/.github/workflows/end2end-test.yml index ef4296b37087f1..c416b69a960b3b 100644 --- a/.github/workflows/end2end-test.yml +++ b/.github/workflows/end2end-test.yml @@ -3,17 +3,11 @@ name: End-to-End Tests on: pull_request: paths: - - 'lib/**' - - 'packages/**' - - '!packages/**/*.md' - - '!docs/**/*.md' + - '!**/*.md' push: branches: [master] paths: - - 'lib/**' - - 'packages/**' - - '!packages/**/*.md' - - '!docs/**/*.md' + - '!**/*.md' jobs: admin-1: diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 66df480e9a241c..617d603ab0b300 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -2,10 +2,7 @@ name: Performances Tests on: [pull_request] paths: - - 'lib/**' - - 'packages/**' - - '!packages/**/*.md' - - '!docs/**/*.md' + - '!**/*.md' jobs: performance: diff --git a/.github/workflows/rnmobile-android-runner.yml b/.github/workflows/rnmobile-android-runner.yml index 5da01384114e55..a36398eb817cfb 100644 --- a/.github/workflows/rnmobile-android-runner.yml +++ b/.github/workflows/rnmobile-android-runner.yml @@ -2,10 +2,7 @@ name: React Native E2E Tests (Android) on: pull_request paths: - - 'lib/**' - - 'packages/**' - - '!packages/**/*.md' - - '!docs/**/*.md' + - '!**/*.md' jobs: test: diff --git a/.github/workflows/rnmobile-ios-runner.yml b/.github/workflows/rnmobile-ios-runner.yml index 66a21a57b96868..df1331b17edc5a 100644 --- a/.github/workflows/rnmobile-ios-runner.yml +++ b/.github/workflows/rnmobile-ios-runner.yml @@ -1,10 +1,7 @@ name: React Native E2E Tests (iOS) on: pull_request paths: - - 'lib/**' - - 'packages/**' - - '!packages/**/*.md' - - '!docs/**/*.md' + - '!**/*.md' jobs: test: From b62c33fda5597aadc7eeaf59d09edce5b764c4a1 Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Thu, 9 Jul 2020 08:45:24 -0700 Subject: [PATCH 3/3] Whitespace change, test Github actions --- docs/readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/readme.md b/docs/readme.md index 49efa7a0706945..10eaaf0fb0f771 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -1,6 +1,6 @@ # Block Editor Handbook -The Gutenberg project is transforming the way content is created on WordPress. A block editor was the first product launched creating a new methodology for working with content. +The Gutenberg project is transforming the way content is created on WordPress. A block editor was the first product launched creating a new methodology for working with content. The Block Editor handbook provides documentation for designers and developers on how to extend the editor, and also how you can start contributing to the project. For authors, writers, and users of the block editor see the [block editor support documentation](https://wordpress.org/support/article/wordpress-editor/). @@ -11,3 +11,4 @@ Using a system of Blocks to compose and format content, the new block-based edit Blocks treat Paragraphs, Headings, Media, and Embeds all as components that, when strung together, make up the content stored in the WordPress database, replacing the traditional concept of freeform text with embedded media and shortcodes. The new editor is designed with progressive enhancement, meaning that it is back-compatible with all legacy content, and it also offers a process to try to convert and split a Classic block into equivalent blocks using client-side parsing. Finally, the blocks offer enhanced editing and format controls. The Editor offers rich new value to users with visual, drag-and-drop creation tools and powerful developer enhancements with modern vendor packages, reusable components, rich APIs and hooks to modify and extend the editor through Custom Blocks, Custom Block Styles and Plugins. +