From f08c1bc86ae9e50f2bcb0dbae23f39ce582d7c62 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 6 Mar 2024 09:36:17 +0800 Subject: [PATCH] ci: refactor CI workflows and improve tests - Update GitHub Actions workflows to determine Go version from `go.mod` and check for the latest version. Signed-off-by: Bo-Yi Wu --- .github/workflows/go.yml | 3 ++- .github/workflows/goreleaser.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c97d78a..6aa821b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,7 +17,8 @@ jobs: - name: Setup go uses: actions/setup-go@v5 with: - go-version: "stable" + go-version-file: go.mod + check-latest: true - name: Setup golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 1b06764..e245b7b 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -19,7 +19,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "stable" + go-version-file: go.mod + check-latest: true - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: