It is essential to test any changes before merging them into a central or feature branch to catch bugs before they make it to production and ensure existing functionality continues to work as expected. Testing against a copy of production data is recommended to find data-related issues more effectively.
Previously, this process was problematic and time-consuming, often involving multiple teams. Luckily, Neon has a built-in branching mechanism, allowing you to quickly create a copy of your data.
In this tutorial, you will learn how to create a preview build for each pull request for a React Native Expo application. You will also learn how to set up a corresponding Neon database branch to be used with the preview build, and all this will be done within a single GitHub Action. Then, once the pull request is closed, you’ll learn how to clean up your resources with another GitHub Action. Video down below: