Skip to content

build(deps-dev): bump tar in the npm_and_yarn group across 1 director… #608

build(deps-dev): bump tar in the npm_and_yarn group across 1 director…

build(deps-dev): bump tar in the npm_and_yarn group across 1 director… #608

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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- 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@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
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