-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.47 KB
/
LoadTest.yml
File metadata and controls
52 lines (45 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Load Test Trigger
on:
push:
branches:
- main
workflow_dispatch:
env:
AZURE_WEBAPP_NAME: "2uk5bjv3yjups-dev" # set this to your application's name
LOAD_TEST_RESOURCE: "RO-LoadTest" # set this to your Azure Load Test resource's name
LOAD_TEST_RESOURCE_GROUP: "rg-RO-MyApp" # set this to the resource group you've used for this training
jobs:
loadTest:
name: Load Test
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Actions
uses: actions/checkout@v2
- name: Login to Azure
uses: azure/login@v1
continue-on-error: false
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: 'Azure Load Testing'
uses: azure/load-testing@v1
with:
loadTestConfigFile: 'LoadTestConfig.yaml'
loadTestResource: ${{ env.LOAD_TEST_RESOURCE }}
resourceGroup: ${{ env.LOAD_TEST_RESOURCE_GROUP }}
env: |
[
{
"name": "webapp",
"value": "${{ env.AZURE_WEBAPP_NAME }}.azurewebsites.net"
}
]
- uses: JasonEtco/create-an-issue@v2.9.1
if: ${{ failure() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .github/ISSUE_TEMPLATE/load_test_report.md
- uses: actions/upload-artifact@v2
with:
name: loadTestResults
path: ${{ github.workspace }}/loadTest