Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CICD-47] Add a basic e2e test #17

Merged
merged 3 commits into from
Jul 8, 2022
Merged

[CICD-47] Add a basic e2e test #17

merged 3 commits into from
Jul 8, 2022

Conversation

apmatthews
Copy link
Member

@apmatthews apmatthews commented Jul 7, 2022

JIRA Ticket

CICD-47

What Are We Doing Here

Introduces a workflow that runs an end-to-end test of the action.

  • Pull requests targeting main and pushes to main will trigger the workflow.
  • Uses the local copy of the action. If a PR makes changes to the action, those changes are included in the test.

The objective of the test is to bump the version of a minimal WordPress plugin, deploy it to the remote, and validate that the remote plugin version was updated successfully. The test also resets the remote copy of the plugin to its pre-deploy state.

Testing

Commit d8dc96e introduces a breaking change to the action and results in the e2e test failing. The next commit reverts the breaking change and shows that the test passes again.

@apmatthews apmatthews marked this pull request as ready for review July 8, 2022 15:10
@apmatthews apmatthews requested a review from a team as a code owner July 8, 2022 15:10
Copy link
Contributor

@daniel-savo daniel-savo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@apmatthews apmatthews merged commit 0d63fba into main Jul 8, 2022
@apmatthews apmatthews deleted the cicd-47-e2e-test branch July 8, 2022 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants