-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 994 Bytes
/
Copy pathloadtest_api.yml
File metadata and controls
31 lines (26 loc) · 994 Bytes
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
name: Load Test API
# Controls when the workflow will run
on: workflow_dispatch
env:
LOAD_TEST_RESOURCE: ${{ secrets.LOADTEST_RESOURCE }} # "<Name of your load test resource>"
LOAD_TEST_RESOURCE_GROUP: ${{ secrets.LOADTEST_RG }} # "<Name of your load test resource group>"
LOCATION: "East US"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
loadTest:
name: Load Test Microservice
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.LOAD_TEST_CREDENTIALS }}
- name: 'Azure Load Testing'
uses: azure/load-testing@v1
with:
loadTestConfigFile: 'loadtest/LoadTestAPI.yaml'
loadTestResource: ${{ env.LOAD_TEST_RESOURCE }}
resourceGroup: ${{ env.LOAD_TEST_RESOURCE_GROUP }}