chore: refine CI configuration and dependencies

- Remove dynamic Go versioning in favor of pinning to major version `1`
- Update linter version from `v1.56.2` to `v1.58.1` in GitHub Actions workflow

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-05-09 08:38:32 +08:00
parent 4c70d39fc4
commit d90191e3a4
No known key found for this signature in database

View File

@ -22,12 +22,11 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version-file: "go.mod" go-version: "^1"
check-latest: true
- name: Setup golangci-lint - name: Setup golangci-lint
uses: golangci/golangci-lint-action@v5 uses: golangci/golangci-lint-action@v5
with: with:
version: v1.56.2 version: v1.58.1
args: --verbose args: --verbose
test: test:
needs: lint needs: lint