From bd2d38910e9d9b74e4fec13f60db34fc571c3592 Mon Sep 17 00:00:00 2001 From: William Bezuidenhout Date: Tue, 25 Nov 2025 11:03:29 +0200 Subject: [PATCH 1/2] add mise.toml --- mise.toml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 mise.toml diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000000..a1f15d3c03 --- /dev/null +++ b/mise.toml @@ -0,0 +1,4 @@ +[tools] +golang = "1.25.4" +shfmt = "3.8.0" +shellcheck = "0.10.0" From 6a6c22e5214b616c858c5ec012795cef8e3eb2a0 Mon Sep 17 00:00:00 2001 From: William Bezuidenhout Date: Tue, 25 Nov 2025 10:14:43 +0000 Subject: [PATCH 2/2] use mise action with cache true (#1207) --- .github/workflows/go-ci.yml | 6 +++--- .github/workflows/go-lint.yml | 6 +++--- .github/workflows/goreleaser-check.yml | 6 +++--- .github/workflows/goreleaser.yml | 6 +++--- .github/workflows/scip.yml | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go-ci.yml b/.github/workflows/go-ci.yml index fb98987d81..a5e1ea8392 100644 --- a/.github/workflows/go-ci.yml +++ b/.github/workflows/go-ci.yml @@ -16,10 +16,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v6.1.0 + - name: Set up mise + uses: jdx/mise-action@v2 with: - go-version-file: '.tool-versions' + cache: true - name: (Windows) Enable pulling Go modules from private sourcegraph/sourcegraph if: runner.os == 'Windows' run: git config --global url."https://$env:PRIVATE_TOKEN@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/" diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml index dcc6585884..ca8296f524 100644 --- a/.github/workflows/go-lint.yml +++ b/.github/workflows/go-lint.yml @@ -13,10 +13,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v6.1.0 + - name: Set up mise + uses: jdx/mise-action@v2 with: - go-version-file: '.tool-versions' + cache: true - name: Enable pulling Go modules from private sourcegraph/sourcegraph run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/" - run: ./dev/go-lint.sh diff --git a/.github/workflows/goreleaser-check.yml b/.github/workflows/goreleaser-check.yml index a3528f7848..5c89776044 100644 --- a/.github/workflows/goreleaser-check.yml +++ b/.github/workflows/goreleaser-check.yml @@ -16,10 +16,10 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v6.1.0 + - name: Set up mise + uses: jdx/mise-action@v2 with: - go-version-file: '.tool-versions' + cache: true - name: Enable pulling Go modules from private sourcegraph/sourcegraph run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/" - name: Check GoReleaser config diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 457180aae6..61bdce25ff 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -178,10 +178,10 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v6.1.0 + - name: Set up mise + uses: jdx/mise-action@v2 with: - go-version-file: '.tool-versions' + cache: true - name: Enable pulling Go modules from private sourcegraph/sourcegraph run: git config --global url."https://${PRIVATE_TOKEN}@github.com/sourcegraph/".insteadOf "https://github.com/sourcegraph/" - run: go test ./... diff --git a/.github/workflows/scip.yml b/.github/workflows/scip.yml index 99982a511a..29022fe7c5 100644 --- a/.github/workflows/scip.yml +++ b/.github/workflows/scip.yml @@ -11,10 +11,10 @@ jobs: container: sourcegraph/scip-go steps: - uses: actions/checkout@v4 - - name: Set up Go - uses: actions/setup-go@v6.1.0 + - name: Set up mise + uses: jdx/mise-action@v2 with: - go-version-file: '.tool-versions' + cache: true - name: Set directory to safe for git run: git config --global --add safe.directory $GITHUB_WORKSPACE