generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (40 loc) · 1.22 KB
/
azure-load-tests.yml
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
name: Azure Load Tests
on:
push:
branches:
- azure-load-tests
#schedule:
#- cron: "0 0 * * 1"
workflow_dispatch:
inputs:
rollbackCount:
description: 'Number of migrations to rollback'
required: true
default: # of rollback you require in the file input
jobs:
loadtest:
name: Load Test
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
# Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v2
# Login to Azure using the CLI
- name: Login via Azure CLI
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# Run the Azure Load Test
- name: Run Load Test
run: |
az load test-run create \
--resource-group "csels-rsti-internal-moderate-rg" \
--load-test-name "jeff-load-test" \
--test-run-name "github-action-triggered-test-run" \
--test-id "9020b745-5fc4-4284-8803-04076ea09650" \
--subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}"