ci: update testing workflow for Go version consistency

- Correct the `go-version-file` syntax by removing quotes in the testing workflow
- Add `check-latest` flag to ensure the latest Go version is used in testing workflow

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-02-19 10:24:03 +08:00
parent 082886c85b
commit bf749b4823
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ jobs:
fetch-depth: 0 # all history for all branches and tags
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
go-version-file: go.mod
check-latest: true
- uses: https://gitea.com/actions/go-hashfiles@v0.0.1
id: hash-go
with: