diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 764239a2c..aeb16672b 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -59,7 +59,11 @@ jobs: echo "${{ secrets.AWS_SSH_KEY }}" > "$e2e_ssh_key" chmod 600 "$e2e_ssh_key" export E2E_SSH_KEY="$e2e_ssh_key" - make -f tests/Makefile test GINKGO_ARGS="--label-filter='${{ matrix.label }}'" + if [ "${{ matrix.label }}" = "default" ]; then \ + make -f tests/Makefile test GINKGO_ARGS="--label-filter='${{ matrix.label }}' --json-report ginkgo.json"; \ + else \ + make -f tests/Makefile test GINKGO_ARGS="--label-filter='${{ matrix.label }}'"; \ + fi - name: Archive Ginkgo logs uses: actions/upload-artifact@v4 diff --git a/tests/Makefile b/tests/Makefile index 124deab00..cd3740f4b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -27,7 +27,7 @@ test: $(GINKGO_BIN) CI=$(CI) \ ENV_FILE=$(ENV_FILE) \ GINKGO_FOCUS=$(GINKGO_FOCUS) \ - $(GINKGO_BIN) $(GINKGO_ARGS) -v --json-report ginkgo.json ./tests/... + $(GINKGO_BIN) $(GINKGO_ARGS) -v ./tests/... $(GINKGO_BIN): mkdir -p $(CURDIR)/bin