Skip to content

Commit 2fbe052

Browse files
authored
Merge pull request #87411 from timdeschryver/patch-2
docs(Azure Static Web Apps): running end-to-end tests on the pre-production environment.
2 parents c79dd71 + 7a4bd50 commit 2fbe052

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

articles/static-web-apps/review-publish-pull-requests.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This article demonstrates how to use pre-production environments to review chang
1515

1616
A pre-production (staging) environment is a fully-functional staged version of your application that includes changes not available in production.
1717

18-
Azure Static Web Apps generates a GitHub Actions workflow in the repository. When a pull request is created against a branch that the workflow watches, the pre-production environment is built. The pre-production environment stages the app, enables you to perform reviews before pushing to production.
18+
Azure Static Web Apps generates a GitHub Actions workflow in the repository. When a pull request is created against a branch that the workflow watches, the pre-production environment is built. The pre-production environment stages the app, enables you to perform reviews before pushing them to production.
1919

2020
Multiple pre-production environments can co-exist at the same time when using Azure Static Web Apps. Each time you create a pull request against the watched branch, a staged version with your changes is deployed to a distinct pre-production environment.
2121

@@ -40,7 +40,7 @@ Begin by making a change in your repository. You can do it directly on GitHub as
4040

4141
1. Navigate to your project's repository on GitHub, then click on the **Branch** button to create a new branch.
4242

43-
:::image type="content" source="./media/review-publish-pull-requests/create-branch.png" alt-text="Create new branch using GitHub interface":::]
43+
:::image type="content" source="./media/review-publish-pull-requests/create-branch.png" alt-text="Create new branch using GitHub interface":::
4444

4545
Type a branch name and click on **Create branch**.
4646

@@ -62,7 +62,7 @@ Next, create a pull request from this change.
6262

6363
1. Click on the **Compare & pull request** button of your branch.
6464

65-
1. You can optionally fill-in some details about your changes, then click on **Create pull request**.
65+
1. You can optionally fill in some details about your changes, then click on **Create pull request**.
6666

6767
:::image type="content" source="./media/review-publish-pull-requests/open.png" alt-text="Pull request creation in GitHub":::
6868

@@ -85,6 +85,9 @@ If you take a closer look at the URL, you can see that it's composed like this:
8585

8686
For a given pull request, the URL remains the same even if you push new updates. In addition to the URL staying constant, the same pre-production environment is reused for the life of the pull request.
8787

88+
To automate the review process with end-to-end testing, the [Azure Static Web App Deploy GitHub Action](https://github.com/Azure/static-web-apps-deploy) has the `static_web_app_url` output variable.
89+
This URL can be referenced in the rest of your workflow to run your tests against the pre-production environment.
90+
8891
## Publish changes
8992

9093
Once changes are approved, you can publish your changes to production by merging the pull request.
@@ -93,7 +96,7 @@ Click on **Merge pull request**:
9396

9497
:::image type="content" source="./media/review-publish-pull-requests/merge.png" alt-text="Merge pull request button in GitHub interface":::
9598

96-
Merging copies your changes to the tracked branch (the "production" branch). Then, the deployment workflow starts on the tracked branch and the changes are live after your application has rebuilt.
99+
Merging copies your changes to the tracked branch (the "production" branch). Then, the deployment workflow starts on the tracked branch and the changes are live after your application has been rebuilt.
97100

98101
To verify the changes in production, open your production URL to load the live version of the website.
99102

@@ -104,7 +107,7 @@ To verify the changes in production, open your production URL to load the live
104107
> [!WARNING]
105108
> Be careful when publishing sensitive content to staged versions, as access to pre-production environments are not restricted.
106109
107-
- The number of pre-production environments available for each app deployed with Static Web Apps depends of the [hosting plan](plans.md) you are using. For example, with the Free tier you can have 3 pre-production environments in addition to the production environment.
110+
- The number of pre-production environments available for each app deployed with Static Web Apps depends on the [hosting plan](plans.md) you are using. For example, with the Free tier you can have 3 pre-production environments in addition to the production environment.
108111

109112
- Pre-production environments are not geo-distributed.
110113

0 commit comments

Comments
 (0)