-
Notifications
You must be signed in to change notification settings - Fork 705
47 lines (41 loc) · 1.41 KB
/
copilot-run-integration-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
name: copilot-run-integration-tests
on:
workflow_dispatch:
inputs:
BACKEND_HOST:
required: true
type: string
ENVIRONMENT:
required: true
type: string
workflow_call:
inputs:
BACKEND_HOST:
required: true
type: string
ENVIRONMENT:
required: true
type: string
permissions:
contents: read
jobs:
tests:
environment: ${{inputs.ENVIRONMENT}}
name: Integration Testing
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Configure test environment
working-directory: integration-tests
env:
TestUsername: ${{secrets.COPILOT_CHAT_TEST_USER_ACCOUNT1}}
TestPassword: ${{secrets.COPILOT_CHAT_TEST_USER_PASSWORD1}}
run: |
dotnet user-secrets set "BaseServerUrl" "https://${{inputs.BACKEND_HOST}}.azurewebsites.net/"
dotnet user-secrets set "Authority" "https://login.microsoftonline.com/${{vars.APPLICATION_TENANT_ID}}"
dotnet user-secrets set "ClientID" ${{vars.APPLICATION_CLIENT_ID}}
dotnet user-secrets set "Scopes" "openid, offline_access, profile, api://${{vars.BACKEND_CLIENT_ID}}/access_as_user"
# dotnet user-secrets set "TestUsername" "$env:TestUsername"
# dotnet user-secrets set "TestPassword" "$env:TestPassword"
- name: Run integration tests
run: dotnet test --logger trx