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

Add a manual workflow run for PHP unit tests #414

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

mikkamp
Copy link
Contributor

@mikkamp mikkamp commented Apr 5, 2024

Changes proposed in this Pull Request:

This PR allows us to run the PHP unit tests manually for any version of PHP / WP / WC. This makes it easier to test release candidates / beta versions without needing to setup the environment locally. The intention is for this to be used during compatibility testing, once this PR is approved we can do the same for other extension we manage.

I've also edited the recommended spacing for YAML files to the editor config, to ensure we stick to consistent spacing.

Detailed test instructions:

A manual workflow can't be triggered until this branch is merged. So testing will need to be done on a fork.

  1. Create a fork of this repo
  2. Merge the corresponding branch (with a PR or directly)
  3. Run the manual workflow using release candidate versions of WP and WC
  4. Confirm the single job PHP unit tests (for Release Candidates) completed successfully
    image

Changelog entry

  • Dev - Add a manual workflow run for PHP unit tests.

@mikkamp mikkamp requested a review from a team April 5, 2024 10:12
@mikkamp mikkamp self-assigned this Apr 5, 2024
@github-actions github-actions bot added the changelog: dev Developer-facing only change. label Apr 5, 2024
Copy link
Contributor

@martynmjones martynmjones left a comment

Choose a reason for hiding this comment

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

Hey @mikkamp, thanks for improving the workflow.

Tested on a forked repo and confirmed I can run the unit tests with different versions of PHP, WordPress, and WooCommerce so LGTM ✅

@mikkamp mikkamp merged commit db0298d into trunk Apr 11, 2024
7 checks passed
@mikkamp mikkamp deleted the dev/manual-workflow-run-unit-tests branch April 11, 2024 15:40
@puntope puntope mentioned this pull request May 14, 2024
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: dev Developer-facing only change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants