Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit edd3000

Browse files
authored
Merge pull request #185690 from ntrogh/alt-github
Linked to GitHub Action marketplace
2 parents ad7ca20 + cdcf779 commit edd3000

File tree

1 file changed

+6
-52
lines changed

1 file changed

+6
-52
lines changed

articles/load-testing/tutorial-cicd-github-actions.md

Lines changed: 6 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ services: load-testing
66
ms.service: load-testing
77
ms.author: ninallam
88
author: ninallam
9-
ms.date: 11/30/2021
9+
ms.date: 01/21/2022
1010
ms.topic: tutorial
1111
#Customer intent: As an Azure user, I want to learn how to automatically test builds for performance regressions on every pull request and/or deployment by using GitHub Actions.
1212
---
1313

1414
# Tutorial: Identify performance regressions with Azure Load Testing Preview and GitHub Actions
1515

16-
This tutorial describes how to automate performance regression testing by using Azure Load Testing Preview and GitHub Actions. You'll configure a GitHub Actions continuous integration and continuous delivery (CI/CD) workflow to run a load test for a sample web application. You'll then use the test results to identify performance regressions.
16+
This tutorial describes how to automate performance regression testing by using Azure Load Testing Preview and GitHub Actions. You'll configure a GitHub Actions CI/CD workflow and use the [Azure Load Testing Action](https://github.com/marketplace/actions/azure-load-testing) to run a load test for a sample web application. You'll then use the test results to identify performance regressions.
1717

1818
If you're using Azure Pipelines for your CI/CD workflows, see the corresponding [Azure Pipelines tutorial](./tutorial-cicd-azure-pipelines.md).
1919

@@ -136,7 +136,7 @@ jobs:
136136

137137
## Configure the GitHub Actions workflow to run a load test
138138

139-
In this section, you'll set up a GitHub Actions workflow that triggers the load test. The sample application repository contains a workflow file *SampleApp.yaml*. The workflow first deploys the sample web application to Azure App Service, and then invokes the load test. The GitHub action uses an environment variable to pass the URL of the web application to the Apache JMeter script.
139+
In this section, you'll set up a GitHub Actions workflow that triggers the load test. The sample application repository contains a workflow file *SampleApp.yaml*. The workflow first deploys the sample web application to Azure App Service, and then invokes the load test by using the [Azure Load Testing Action](https://github.com/marketplace/actions/azure-load-testing). The GitHub action uses an environment variable to pass the URL of the web application to the Apache JMeter script.
140140

141141
Update the *SampleApp.yaml* GitHub Actions workflow file to configure the parameters for running the load test.
142142

@@ -291,53 +291,6 @@ In this tutorial, you'll reconfigure the sample application to accept only secur
291291

292292
The Azure Load Testing task securely passes the repository secret from the workflow to the test engine. The secret parameter is used only while you're running the load test. Then the parameter's value is discarded from memory.
293293

294-
## Configure and use the Azure Load Testing action
295-
296-
This section describes the Azure Load Testing GitHub action. You can use this action by referencing `azure/load-testing@v1` in your workflow. The action runs on Windows, Linux, and Mac runners.
297-
298-
You can use the following parameters to configure the GitHub action:
299-
300-
|Parameter |Description |
301-
|---------|---------|
302-
|`loadTestConfigFile` | *Required*. Path to the YAML configuration file for the load test. The path is fully qualified or relative to the default working directory. |
303-
|`resourceGroup` | *Required*. Name of the resource group that contains the Azure Load Testing resource. |
304-
|`loadTestResource` | *Required*. Name of an existing Azure Load Testing resource. |
305-
|`secrets` | Array of JSON objects that consist of the name and value for each secret. The name should match the secret name that's used in the Apache JMeter test script. |
306-
|`env` | Array of JSON objects that consist of the name and value for each environment variable. The name should match the variable name that's used in the Apache JMeter test script. |
307-
308-
The following YAML code snippet describes how to use the action in a GitHub Actions workflow:
309-
310-
```yaml
311-
- name: 'Azure Load Testing'
312-
uses: azure/load-testing@v1
313-
with:
314-
loadTestConfigFile: '< YAML File path>'
315-
loadTestResource: '<name of the load test resource>'
316-
resourceGroup: '<name of the resource group of your load test resource>'
317-
secrets: |
318-
[
319-
{
320-
"name": "<Name of the secret>",
321-
"value": "${{ secrets.MY_SECRET1 }}",
322-
},
323-
{
324-
"name": "<Name of the secret>",
325-
"value": "${{ secrets.MY_SECRET2 }}",
326-
}
327-
]
328-
env: |
329-
[
330-
{
331-
"name": "<Name of the variable>",
332-
"value": "<Value of the variable>",
333-
},
334-
{
335-
"name": "<Name of the variable>",
336-
"value": "<Value of the variable>",
337-
}
338-
]
339-
```
340-
341294
## Clean up resources
342295

343296
[!INCLUDE [alt-delete-resource-group](../../includes/alt-delete-resource-group.md)]
@@ -346,5 +299,6 @@ The following YAML code snippet describes how to use the action in a GitHub Acti
346299

347300
You've now created a GitHub Actions workflow that uses Azure Load Testing for automatically running load tests. By using pass/fail criteria, you can set the status of the CI/CD workflow. With parameters, you can make the running of load tests configurable.
348301

349-
* For more information about parameterizing load tests, see [Parameterize a load test](./how-to-parameterize-load-tests.md).
350-
* For more information about defining test pass/fail criteria, see [Define test criteria](./how-to-define-test-criteria.md).
302+
* Learn more about the [Azure Load Testing Action](https://github.com/marketplace/actions/azure-load-testing).
303+
* Learn how to [parameterize a load test](./how-to-parameterize-load-tests.md).
304+
* Learn how to [define test pass/fail criteria](./how-to-define-test-criteria.md).

0 commit comments

Comments
 (0)