-
Notifications
You must be signed in to change notification settings - Fork 10
67 lines (55 loc) · 2.13 KB
/
dts-e2e-tests.yaml
File metadata and controls
67 lines (55 loc) · 2.13 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
name: 🧪 DTS Emulator E2E Tests
# This workflow runs E2E tests against the Durable Task Scheduler (DTS) emulator.
# Tests are split across parallel jobs with separate task hubs for isolation.
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
dts-e2e-tests:
strategy:
fail-fast: false
matrix:
node-version: ["22.x", "24.x"]
test-group:
- name: "entity"
pattern: "test/e2e-azuremanaged/entity.spec.ts"
- name: "orchestration"
pattern: "test/e2e-azuremanaged/orchestration.spec.ts"
- name: "query-restart"
pattern: "test/e2e-azuremanaged/query-apis.spec.ts test/e2e-azuremanaged/restart.spec.ts"
- name: "retry-history-rewind"
pattern: "test/e2e-azuremanaged/retry-handler.spec.ts test/e2e-azuremanaged/retry-advanced.spec.ts test/e2e-azuremanaged/history.spec.ts test/e2e-azuremanaged/rewind.spec.ts"
name: "e2e (${{ matrix.test-group.name }}, node ${{ matrix.node-version }})"
env:
EMULATOR_VERSION: "latest"
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 🐳 Pull Docker image
run: docker pull mcr.microsoft.com/dts/dts-emulator:$EMULATOR_VERSION
- name: 🚀 Run Docker container
run: |
docker run --name dtsemulator -d -p 8080:8080 mcr.microsoft.com/dts/dts-emulator:$EMULATOR_VERSION
- name: ⏳ Wait for container to be ready
run: sleep 10
- name: 🔧 Set environment variables
run: |
echo "TASKHUB=default" >> $GITHUB_ENV
echo "ENDPOINT=localhost:8080" >> $GITHUB_ENV
- name: ⚙️ NodeJS - Install
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: ⚙️ Install dependencies
run: npm ci
- name: ✅ Run E2E tests — ${{ matrix.test-group.name }}
run: npx jest ${{ matrix.test-group.pattern }} --runInBand --detectOpenHandles
timeout-minutes: 15