fix: Catch exceptions from user-provided retry handlers to prevent orchestration crash #546
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 🚀 Test and Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint-and-unit-tests: | |
| runs-on: ubuntu-latest | |
| env: | |
| NODE_VER: 22.x | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: ⚙️ NodeJS - Install | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VER }} | |
| registry-url: "https://registry.npmjs.org" | |
| - name: ⚙️ Install dependencies | |
| run: npm ci | |
| - name: 🔍 Run linting | |
| run: npm run lint | |
| - name: ✅ Run unit tests | |
| run: npm run test:unit | |
| e2e-tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: ["22.x", "24.x"] | |
| needs: lint-and-unit-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v4 | |
| - 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 | |
| # Install Go SDK for durabletask-go sidecar | |
| - name: 🔧 Install Go SDK | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "stable" | |
| # Install and run the durabletask-go sidecar for running e2e tests | |
| - name: ✅ Run E2E tests with durabletask-go sidecar | |
| run: | | |
| go install github.com/microsoft/durabletask-go@main | |
| durabletask-go --port 4001 & | |
| sleep 5 # Wait for sidecar to be ready | |
| npm run test:e2e:internal |