-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[not verified] Merge branch 'master' into try/boost-javascript-tests-…
…workflow * master: (57 commits) E2E tests: run against atomic test site (#20807) Connection: remove in-place from main connection flow (#20797) Restore the 'safecss_embed_style' filter from the pre-4.7 Custom CSS (#20654) Photon: Add webp support (#20473) Responsive Videos: support more embed block formats (#20834) Instant Search: ensure box-shadow and text-shadow aren't applied to search buttons (#20833) Search: Apply design polish to the Customberg customization interface (#20754) Block editor: add .min suffix to all resources loaded in editor (#20820) Release forgotten projects (#20837) tools: Update help texts (#20830) Remove any wp-env leftovers (#20835) CLI: Remove autotagger prompt when generating a new plugin (#20826) Enable Support to perform utf8 conversions during checksum calculations (#20816) remove unused methods (#20828) Remove unnecessary use of `prettier` on JSON data (#20823) push-to-mirrors: fix auth for "mirror repo exists" check (#20824) cli: Fix tests (#20825) Issue templates: update docs & allow selecting no plugin (#20821) update annotations versions (#20794) Admin: use JetpackFooter RNA component (#20630) ...
- Loading branch information
Showing
369 changed files
with
6,781 additions
and
4,544 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 |
---|---|---|
|
@@ -19,6 +19,7 @@ body: | |
- Beta | ||
- Debug Helper | ||
- VaultPress | ||
- None | ||
multiple: true | ||
validations: | ||
required: true | ||
|
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ body: | |
- Beta | ||
- Debug Helper | ||
- VaultPress | ||
- None | ||
multiple: true | ||
validations: | ||
required: true | ||
|
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ body: | |
- Beta | ||
- Debug Helper | ||
- VaultPress | ||
- None | ||
multiple: true | ||
validations: | ||
required: true | ||
|
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,168 @@ | ||
name: E2E Tests on Atomic sites | ||
|
||
on: | ||
schedule: | ||
- cron: '0 */4 * * *' | ||
|
||
jobs: | ||
e2e-tests: | ||
name: "E2E tests" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 25 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Read tool versions | ||
id: versions | ||
uses: ./.github/actions/read-versions | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ steps.versions.outputs.node-version }} | ||
|
||
- name: Use pnpm cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-pnpm-${{ steps.versions.outputs.node-version }}-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-${{ steps.versions.outputs.node-version }}- | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: ${{ steps.versions.outputs.pnpm-version }} | ||
|
||
- name: Tool versions | ||
run: | | ||
which node | ||
node --version | ||
which pnpm | ||
pnpm --version | ||
which jq | ||
jq --version | ||
- name: Install | ||
working-directory: projects/plugins/jetpack/tests/e2e | ||
env: | ||
CONFIG_KEY: ${{ secrets.E2E_CONFIG_KEY }} | ||
run: | | ||
pnpm install --dir ../../../../tools/cli | ||
pnpm install | ||
pnpm run test-decrypt-config | ||
- name: Run tests | ||
working-directory: projects/plugins/jetpack/tests/e2e | ||
env: | ||
TEST_SITE: atomic | ||
run: pnpm run test-e2e -- --group=atomic | ||
|
||
- name: Upload test artifacts | ||
if: ${{ always() }} | ||
continue-on-error: true | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-output-${{ matrix.group }} | ||
path: projects/plugins/jetpack/tests/e2e/output | ||
|
||
- name: Send Slack notification | ||
if: ${{ failure() }} | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
working-directory: projects/plugins/jetpack/tests/e2e | ||
run: NODE_ENV=test node ./bin/slack.js run atomic | ||
|
||
- uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
if: always() | ||
- name: Publish to Testspace | ||
working-directory: projects/plugins/jetpack/tests/e2e | ||
run: | | ||
testspace "[${GROUP}]output/reports/junit-*.xml" | ||
if: always() | ||
|
||
slack-notification: | ||
name: "Slack notification" | ||
runs-on: ubuntu-latest | ||
needs: e2e-tests | ||
env: | ||
CONFIG_KEY: ${{ secrets.E2E_CONFIG_KEY }} | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Read tool versions | ||
id: versions | ||
uses: ./.github/actions/read-versions | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ steps.versions.outputs.node-version }} | ||
|
||
- name: Use pnpm cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-pnpm-${{ steps.versions.outputs.node-version }}-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-${{ steps.versions.outputs.node-version }}- | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: ${{ steps.versions.outputs.pnpm-version }} | ||
|
||
- name: Tool versions | ||
run: | | ||
which node | ||
node --version | ||
which pnpm | ||
pnpm --version | ||
- name: Send Slack notification | ||
working-directory: projects/plugins/jetpack/tests/e2e | ||
env: | ||
RESULT: ${{ needs.e2e-tests.result }} | ||
run: | | ||
pnpm install | ||
pnpm run test-decrypt-config | ||
NODE_ENV=test node ./bin/slack.js job $RESULT | ||
test-reports: | ||
name: "Trigger test report workflow" | ||
runs-on: ubuntu-latest | ||
if: ${{ ! cancelled() }} | ||
needs: e2e-tests | ||
|
||
steps: | ||
- name: Trigger test report workflow | ||
env: | ||
TOKEN: ${{ secrets.E2E_TEST_REPORTS_TOKEN }} | ||
PR_TITLE: ${{ github.event.pull_request.title }} | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
run: | | ||
if [ "$GITHUB_EVENT_NAME" == pull_request ]; then | ||
BRANCH=$GITHUB_HEAD_REF | ||
EVENT_NAME="$PR_NUMBER: $PR_TITLE" | ||
else | ||
BRANCH=${GITHUB_REF:11} | ||
EVENT_NAME="Run $GITHUB_RUN_ID" | ||
fi | ||
curl -X POST https://api.github.com/repos/automattic/jetpack-e2e-reports/dispatches \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
-u "user:$TOKEN" \ | ||
--data "{\"event_type\": \"$EVENT_NAME\", | ||
\"client_payload\": { | ||
\"repository\": \"$GITHUB_REPOSITORY\", | ||
\"run_id\": \"$GITHUB_RUN_ID\", | ||
\"run_number\": \"$GITHUB_RUN_NUMBER\", | ||
\"branch\": \"$BRANCH\", | ||
\"pr_title\": \"$PR_TITLE\", | ||
\"pr_number\": \"$PR_NUMBER\" | ||
}}" |
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
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
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.