Skip to content

Commit

Permalink
ci: refactor GitHub Actions Go workflow
Browse files Browse the repository at this point in the history
- Update GitHub Actions workflow for Go to use `go-version-file` and `check-latest` instead of a hardcoded Go version.

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Mar 1, 2024
1 parent 33e5eb0 commit 8051f72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "^1.21"
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
check-latest: true
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v4
with:
Expand Down

0 comments on commit 8051f72

Please sign in to comment.