Skip to content

Commit a697d80

Browse files
committed
ci: source mise environment in Buildkite steps
1 parent c7c06df commit a697d80

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.buildkite/pipeline.release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ steps:
2424
env:
2525
<<: *cache_env
2626
GOOS: "{{matrix}}"
27-
command: ".buildkite/release.sh release --clean --split"
27+
commands:
28+
- '. "${BUILDKITE_ENV_FILE}"'
29+
- .buildkite/release.sh release --clean --split
2830
plugins:
2931
- *mise_plugin
3032

@@ -65,4 +67,6 @@ steps:
6567
download:
6668
- dist/**/*
6769
- *mise_plugin
68-
command: ".buildkite/release.sh continue --merge"
70+
commands:
71+
- '. "${BUILDKITE_ENV_FILE}"'
72+
- .buildkite/release.sh continue --merge

.buildkite/pipeline.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ cache: ".buildkite/cache-volume"
1313

1414
steps:
1515
- name: ":golangci-lint: lint"
16-
command: golangci-lint run --verbose --timeout 3m
16+
commands:
17+
- '. "${BUILDKITE_ENV_FILE}"'
18+
- golangci-lint run --verbose --timeout 3m
1719
env:
1820
<<: *cache_env
1921
plugins:
@@ -25,6 +27,7 @@ steps:
2527
env:
2628
<<: *cache_env
2729
commands:
30+
- '. "${BUILDKITE_ENV_FILE}"'
2831
- go test -coverprofile cover.out ./...
2932
- go run github.com/nikolaydubina/go-cover-treemap@v1.5.1 -coverprofile cover.out > cover-tree.svg
3033
- echo '<details><summary>Coverage tree map</summary><img src="artifact://cover-tree.svg" alt="Test coverage tree map" width="70%"></details>' | buildkite-agent annotate --style "info"
@@ -46,7 +49,9 @@ steps:
4649
env:
4750
<<: *cache_env
4851
GOOS: "{{matrix}}"
49-
command: ".buildkite/release.sh release --clean --snapshot --split"
52+
commands:
53+
- '. "${BUILDKITE_ENV_FILE}"'
54+
- .buildkite/release.sh release --clean --snapshot --split
5055
plugins:
5156
- *mise_plugin
5257

0 commit comments

Comments
 (0)