Skip to content

This custom action can automate your WordPress product testing by 10x. Integrate it with your InstaWP account and get going within minutes.

Notifications You must be signed in to change notification settings

InstaWP/wordpress-testing-automation

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InstaWP WordPress Testing Automation

This custom action automates your WordPress testing. Integrate it with your InstaWP account and get going within minutes.

Pre-req

  • Register an account at instawp.com
  • Create a site and upload your plugin/theme (download a zip from github and upload)
  • Save the site as Template, give a unique slug
  • Go to Deployment, enter the details of your WordPress plugin/theme repo.
  • Go back to Templates, connect the git repo to the template.
  • Paste this Yaml file into your repo as shown below.

Yaml File

Paste this code in your .github/workflows/instawp.yml file

name: InstaWP WordPress Testing

on:
  pull_request:
    types: [opened]

jobs:
  create-wp-for-testing:
    runs-on: ubuntu-latest
    steps:
      - uses: instawp/wordpress-testing-automation@latest
        with:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
          INSTAWP_TOKEN: ${{secrets.INSTAWP_TOKEN}}
          EXPIRY_HOURS: 24 //optional
          INSTAWP_TEMPLATE_SLUG: gutenademonew //instawp template slug
          REPO_ID: 123 //instawp repo ID
          ARTIFACT_URL: https://yoursite.com/url.zip //optional
  • INSTAWP_TOKEN can be obtained from your "API Tokens" screen inside the InstaWP interface.
  • INSTAWP_TEMPLATE_SLUG is shown on the "Templates" screen.
  • REPO_ID is shown in the "Deployment" screen.
  • EXPIRY_HOURS is the number of hours the site will be active.
  • ARTIFACT_URL is the URL of the artifact to download. This is useful if you have a custom build process and generated a zip file, you can use this input to specify the URL of the zip file.

Changelog

  • 1.0.2 - Updated to use the new InstaWP API v2 and updated the Node version to 16
  • 1.0.1 - Added support for expiry hours
  • 1.0.0 - Initial release

About

This custom action can automate your WordPress product testing by 10x. Integrate it with your InstaWP account and get going within minutes.

Resources

Stars

Watchers

Forks

Packages

No packages published