-
Notifications
You must be signed in to change notification settings - Fork 285
66 lines (54 loc) · 1.5 KB
/
validate-build-scale.yml
File metadata and controls
66 lines (54 loc) · 1.5 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
name: Functions Scale Tests Azure Storage
permissions:
contents: read
on:
push:
branches:
- main
- dev
paths-ignore: [ '**.md' ]
pull_request:
branches:
- '*'
paths-ignore: [ '**.md' ]
env:
solution: WebJobs.Extensions.DurableTask.sln
config: Release
AzureWebJobsStorage: UseDevelopmentStorage=true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore $solution
- name: Build
run: dotnet build $solution -c $config
- name: Set up Node.js (needed for Azurite)
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install Azurite
run: npm install -g azurite
- name: Run Scale tests
run : |
azurite --silent --blobPort 10000 --queuePort 10001 --tablePort 10002 &
AZURITE_PID=$!
trap "kill $AZURITE_PID || true" EXIT
# Wait for Azurite to be ready
for i in {1..30}; do
if nc -z 127.0.0.1 10000; then
echo "Azurite is ready"
break
fi
echo "Azurite is not ready, waiting ($i/30)"
sleep 1
done
# Run tests
dotnet test ./test/ScaleTests/Microsoft.Azure.WebJobs.Extensions.DurableTask.FunctionsScale.Tests.csproj -c $config --no-build --verbosity normal