Skip to content

Commit 262d4e4

Browse files
authored
ci: split azure functions integration tests into multiple jobs (#7301)
This increases the overall runtime a lot.
1 parent b25f592 commit 262d4e4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/serverless.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ jobs:
156156
dd_api_key: ${{ secrets.DD_API_KEY }}
157157

158158
azure-functions:
159+
strategy:
160+
fail-fast: false
161+
matrix:
162+
spec:
163+
- eventhubs
164+
- client
165+
- servicebus
159166
runs-on: ubuntu-latest
160167
services:
161168
azurite:
@@ -192,6 +199,7 @@ jobs:
192199
env:
193200
PLUGINS: azure-functions
194201
SERVICES: azuresqledge,azureservicebusemulator,azurite,azureeventhubsemulator
202+
SPEC: ${{ matrix.spec }}
195203
steps:
196204
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
197205

packages/datadog-plugin-azure-functions/test/integration-test/http-test/client.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('esm', () => {
7474
async function spawnPluginIntegrationTestProc (cwd, command, args, agentPort, stdioHandler, additionalEnvArgs = {}) {
7575
let env = {
7676
NODE_OPTIONS: `--loader=${hookFile} func start`,
77-
DD_TRACE_AGENT_PORT: agentPort,
77+
DD_TRACE_AGENT_PORT: agentPort
7878
}
7979
env = { ...env, ...additionalEnvArgs }
8080
return spawnProc(command, args, {

0 commit comments

Comments
 (0)