# As a developer i want to create a new environment when a new PR is opened so i can test that PR’s Code in isolation without having to merge the code to dev

**URL:** https://discourse.roots.io/t/as-a-developer-i-want-to-create-a-new-environment-when-a-new-pr-is-opened-so-i-can-test-that-pr-s-code-in-isolation-without-having-to-merge-the-code-to-dev/25626
**Category:** trellis
**Tags:** platform-engineering, devops
**Created:** 2023-07-07T15:23:29Z
**Posts:** 3
**Showing post:** 2 of 3

## Post 2 by @MWDelaney — 2023-07-07T20:27:50Z

It doesn’t cover all of your use cases, but take a look at this, particularly the examples, which includes a dry-run action.

e class='quote' data-post="1" data-topic="25410"\> 
 ![](https://discourse.roots.io/user_avatar/discourse.roots.io/mwdelaney/48/5755_2.png)
[Trellis Deployment with GitHub Actions](https://discourse.roots.io/t/trellis-deployment-with-github-actions/25410) [trellis](/c/trellis/12)

> Introducing Trellis GitHub Deployment. rocket Trellis GitHub Deployment Automatically deploy your [Trellis](https://roots.io/trellis/)-based WordPress site to staging and production environments on merge to staging and main branches respectively, and keep plugins, themes, and WordPress core up to date with Dependabot. Featuresrocket Automatic (or manual) deployment to staging and production environments using [GitHub Actions](https://github.com/features/actions) when pull requests are merged to your staging and main branches respectively. …

---

_[View the full topic](https://discourse.roots.io/t/as-a-developer-i-want-to-create-a-new-environment-when-a-new-pr-is-opened-so-i-can-test-that-pr-s-code-in-isolation-without-having-to-merge-the-code-to-dev/25626)._
