From af92898dbfdf31c8b7b7b6783613f465b1d4a03d Mon Sep 17 00:00:00 2001 From: William Bezuidenhout Date: Tue, 25 Nov 2025 11:20:31 +0200 Subject: [PATCH] use msie action with cache true --- .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