-
Notifications
You must be signed in to change notification settings - Fork 6
68 lines (56 loc) · 2.43 KB
/
Copy pathdotnet-integration-tests.yml
File metadata and controls
68 lines (56 loc) · 2.43 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: .NET Integration Tests
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
permissions:
contents: read
id-token: write
jobs:
integration-tests:
name: Integration tests
runs-on: ubuntu-latest
timeout-minutes: 60
environment: integration
env:
DURABLE_TASK_SCHEDULER_CONNECTION_STRING: Endpoint=http://localhost:8080;TaskHub=default;Authentication=None
AzureWebJobsStorage: UseDevelopmentStorage=true
REDIS_CONNECTION_STRING: localhost:6379
FOUNDRY_PROJECT_ENDPOINT: ${{ secrets.FOUNDRY_PROJECT_ENDPOINT }}
FOUNDRY_MODEL: ${{ secrets.FOUNDRY_MODEL }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: dotnet/global.json
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Start integration infrastructure
uses: ./.github/actions/azure-functions-integration-setup
- name: Restore
working-directory: dotnet
run: dotnet restore agent-framework-durable-extension.slnx
- name: Build
working-directory: dotnet
run: dotnet build agent-framework-durable-extension.slnx --configuration Release --no-restore
- name: Run DurableTask integration tests
working-directory: dotnet
run: dotnet test tests/Microsoft.Agents.AI.DurableTask.IntegrationTests/Microsoft.Agents.AI.DurableTask.IntegrationTests.csproj --configuration Release --no-build --report-xunit-trx --results-directory ../artifacts/test-results
- name: Run Azure Functions integration tests
working-directory: dotnet
run: dotnet test tests/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests/Microsoft.Agents.AI.Hosting.AzureFunctions.IntegrationTests.csproj --configuration Release --no-build --report-xunit-trx --results-directory ../artifacts/test-results
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: dotnet-integration-test-results
path: artifacts/test-results/*