Skip to content

Commit 88c7667

Browse files
authored
add mise.toml (#1206)
* add mise.toml * use mise action with cache true (#1207)
1 parent ca03ac8 commit 88c7667

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

.github/workflows/go-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
19-
- name: Set up Go
20-
uses: actions/[email protected]
19+
- name: Set up mise
20+
uses: jdx/mise-action@v2
2121
with:
22-
go-version-file: '.tool-versions'
22+
cache: true
2323
- name: (Windows) Enable pulling Go modules from private sourcegraph/sourcegraph
2424
if: runner.os == 'Windows'
2525
run: git config --global url."https://$env:[email protected]/sourcegraph/".insteadOf "https://github.com/sourcegraph/"

.github/workflows/go-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16-
- name: Set up Go
17-
uses: actions/[email protected]
16+
- name: Set up mise
17+
uses: jdx/mise-action@v2
1818
with:
19-
go-version-file: '.tool-versions'
19+
cache: true
2020
- name: Enable pulling Go modules from private sourcegraph/sourcegraph
2121
run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
2222
- run: ./dev/go-lint.sh

.github/workflows/goreleaser-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19-
- name: Set up Go
20-
uses: actions/[email protected]
19+
- name: Set up mise
20+
uses: jdx/mise-action@v2
2121
with:
22-
go-version-file: '.tool-versions'
22+
cache: true
2323
- name: Enable pulling Go modules from private sourcegraph/sourcegraph
2424
run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
2525
- name: Check GoReleaser config

.github/workflows/goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ jobs:
178178
uses: actions/checkout@v4
179179
with:
180180
fetch-depth: 0
181-
- name: Set up Go
182-
uses: actions/[email protected]
181+
- name: Set up mise
182+
uses: jdx/mise-action@v2
183183
with:
184-
go-version-file: '.tool-versions'
184+
cache: true
185185
- name: Enable pulling Go modules from private sourcegraph/sourcegraph
186186
run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/"
187187
- run: go test ./...

.github/workflows/scip.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
container: sourcegraph/scip-go
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Set up Go
15-
uses: actions/[email protected]
14+
- name: Set up mise
15+
uses: jdx/mise-action@v2
1616
with:
17-
go-version-file: '.tool-versions'
17+
cache: true
1818

1919
- name: Set directory to safe for git
2020
run: git config --global --add safe.directory $GITHUB_WORKSPACE

mise.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[tools]
2+
golang = "1.25.4"
3+
shfmt = "3.8.0"
4+
shellcheck = "0.10.0"

0 commit comments

Comments
 (0)