-
Notifications
You must be signed in to change notification settings - Fork 273
98 lines (80 loc) · 3.75 KB
/
smoketest-dotnet-isolated-v4.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Smoke Test - .NET Isolated on Functions V4
on:
workflow_dispatch:
push:
branches: [ main, dev ]
paths:
- 'src/**'
- 'test/SmokeTests/OOProcSmokeTests/DotNetIsolated/**'
pull_request:
branches: [ main, dev ]
paths:
- 'src/**'
- 'test/SmokeTests/OOProcSmokeTests/DotNetIsolated/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Install .NET versions
- name: Set up .NET Core 3.1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
- name: Set up .NET Core 2.1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '2.1.x'
- name: Set up .NET Core 6.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.x'
- name: Set up .NET Core 8.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
# Install Azurite
- name: Set up Node.js (needed for Azurite)
uses: actions/setup-node@v3
with:
node-version: '18.x' # Azurite requires at least Node 18
- name: Install Azurite
run: npm install -g azurite
- name: Restore WebJobs extension
run: dotnet restore $solution
- name: Build and pack WebJobs extension
run: cd ./src/WebJobs.Extensions.DurableTask &&
mkdir ./out &&
dotnet build -c Release WebJobs.Extensions.DurableTask.csproj --output ./out &&
mkdir ~/packages &&
dotnet nuget push ./out/Microsoft.Azure.WebJobs.Extensions.DurableTask.*.nupkg --source ~/packages &&
dotnet nuget add source ~/packages
- name: Build .NET Isolated Smoke Test
run: cd ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated &&
dotnet restore --verbosity normal &&
dotnet build -c Release
- name: Install core tools
run: npm i -g azure-functions-core-tools@4 --unsafe-perm true
# Run smoke tests
- name: check that DF extension was installed
run: ls ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated/bin/Release/net6.0/
# Run smoke tests
- name: Run smoke tests
run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 &
cd ./test/SmokeTests/OOProcSmokeTests/DotNetIsolated && func host start & \.test\SmokeTests\OOProcSmokeTests\DotNetIsolated\run-smoke-tests.ps1 -HttpStartPath api/durable_HttpStartTimeoutOrchestrator
# # Validation is blocked on https://github.com/Azure/azure-functions-host/issues/7995
# - name: Run V4 .NET Isolated Smoke Test
# run: test/SmokeTests/e2e-test.ps1 -DockerfilePath test/SmokeTests/OOProcSmokeTests/DotNetIsolated/Dockerfile -HttpStartPath api/StartHelloCitiesTyped
# shell: pwsh
# # Test that OOM errors are recoverable
# - name: Run V4 .NET OOM Test
# run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 --skipApiVersionCheck & test/SmokeTests/e2e-test.ps1 -DockerfilePath test/SmokeTests/OOProcSmokeTests/DotNetIsolated/Dockerfile -HttpStartPath api/durable_HttpStartOOMOrchestrator
# shell: pwsh
# # Test that FailFast errors are recoverable
# - name: Run V4 .NET FailFast Test
# run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 --skipApiVersionCheck & test/SmokeTests/e2e-test.ps1 -DockerfilePath test/SmokeTests/OOProcSmokeTests/DotNetIsolated/Dockerfile -HttpStartPath api/durable_HttpStartProcessExitOrchestrator
# shell: pwsh
# # Test that timeout errors are recoverable
# - name: Run V4 .NET FailFast Test
# run: azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 --skipApiVersionCheck & test/SmokeTests/e2e-test.ps1 -DockerfilePath test/SmokeTests/OOProcSmokeTests/DotNetIsolated/Dockerfile -HttpStartPath api/durable_HttpStartTimeoutOrchestrator
# shell: pwsh