switch back to using setup-go by burmudar · Pull Request #1209 · sourcegraph/src-cli

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch back to using setup-go #1209

Changes from all commits

Commits

File filter

Filter by extension

Conversations

Failed to load comments.

Loading

Jump to

Jump to file

Failed to load files.

Loading

Diff view
Diff view

10 changes: 7 additions & 3 deletions .github/workflows/go-ci.yml

Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up mise
uses: jdx/mise-action@v2
- name: Get Go version from mise
id: mise
run: echo "go-version=$(grep 'golang' mise.toml | cut -d'"' -f2)" >> $GITHUB_OUTPUT
shell: bash
- name: Set up Go
uses: actions/setup-go@v6
with:
cache: true
go-version: ${{ steps.mise.outputs.go-version }}
- 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/"
Expand Down

9 changes: 6 additions & 3 deletions .github/workflows/go-lint.yml

Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up mise
uses: jdx/mise-action@v2
- name: Get Go version from mise
id: mise
run: echo "go-version=$(grep 'golang' mise.toml | cut -d'"' -f2)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@v6
with:
cache: true
go-version: ${{ steps.mise.outputs.go-version }}
- 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

9 changes: 6 additions & 3 deletions .github/workflows/goreleaser-check.yml

Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up mise
uses: jdx/mise-action@v2
- name: Get Go version from mise
id: mise
run: echo "go-version=$(grep 'golang' mise.toml | cut -d'"' -f2)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@v6
with:
cache: true
go-version: ${{ steps.mise.outputs.go-version }}
- 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
Expand Down

9 changes: 6 additions & 3 deletions .github/workflows/goreleaser.yml

Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,13 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up mise
uses: jdx/mise-action@v2
- name: Get Go version from mise
id: mise
run: echo "go-version=$(grep 'golang' mise.toml | cut -d'"' -f2)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@v6
with:
cache: true
go-version: ${{ steps.mise.outputs.go-version }}
- 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 ./...
Expand Down

9 changes: 6 additions & 3 deletions .github/workflows/scip.yml

Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
container: sourcegraph/scip-go
steps:
- uses: actions/checkout@v4
- name: Set up mise
uses: jdx/mise-action@v2
- name: Get Go version from mise
id: mise
run: echo "go-version=$(grep 'golang' mise.toml | cut -d'"' -f2)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@v6
with:
cache: true
go-version: ${{ steps.mise.outputs.go-version }}

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