From b1ffa4ae69c48723ccdca284edaedcea99c29bb0 Mon Sep 17 00:00:00 2001 From: Piotr <17101802+thampiotr@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:19:56 +0000 Subject: [PATCH] troubleshoot drone --- .drone/drone.yml | 9 +++++---- .drone/pipelines/test.jsonnet | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.drone/drone.yml b/.drone/drone.yml index 7aa262125d..7c95d38732 100644 --- a/.drone/drone.yml +++ b/.drone/drone.yml @@ -162,12 +162,13 @@ platform: version: "1809" steps: - commands: - - go test -tags="nodocker,nonetwork" ./... + - '& "C:/Program Files/git/bin/bash.exe" -c ''go test -tags="nodocker,nonetwork" + ./...''' image: grafana/alloy-build-image:v0.1.6-windows name: Run Go tests trigger: - ref: - - refs/heads/main + event: + - pull_request type: docker --- kind: pipeline @@ -835,6 +836,6 @@ kind: secret name: updater_private_key --- kind: signature -hmac: 353fac6e335a14f055d7e7a43b4d40517a1b5e28b3b3ad4d4e68df82b7f013b9 +hmac: 24309a749c8af75e75e62c45578b98592777e3e8b66e8bcf59d47306aa4965ea ... diff --git a/.drone/pipelines/test.jsonnet b/.drone/pipelines/test.jsonnet index 76e37c8b18..47baba0e9b 100644 --- a/.drone/pipelines/test.jsonnet +++ b/.drone/pipelines/test.jsonnet @@ -59,12 +59,14 @@ local pipelines = import '../util/pipelines.jsonnet'; pipelines.windows('Test (Windows)') { trigger: { - ref: ['refs/heads/main'], + event: ['pull_request'], }, steps: [{ name: 'Run Go tests', image: build_image.windows, - commands: ['go test -tags="nodocker,nonetwork" ./...'], + commands: [ + pipelines.windows_command('go test -tags="nodocker,nonetwork" ./...'), + ], }], }, ]