Skip to content

Commit

Permalink
troubleshoot drone
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiotr committed Nov 5, 2024
1 parent d1b75d1 commit b1ffa4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -835,6 +836,6 @@ kind: secret
name: updater_private_key
---
kind: signature
hmac: 353fac6e335a14f055d7e7a43b4d40517a1b5e28b3b3ad4d4e68df82b7f013b9
hmac: 24309a749c8af75e75e62c45578b98592777e3e8b66e8bcf59d47306aa4965ea

...
6 changes: 4 additions & 2 deletions .drone/pipelines/test.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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" ./...'),
],
}],
},
]

0 comments on commit b1ffa4a

Please sign in to comment.