ci: Improve Golang code quality with updated lint configuration file (#307)

* refactor: Optimize code logic and reduce nesting.

* ci: Improve Golang code quality with updated configuration file

* chore: Update GitHub actions setup-go to version 5 and optimize caching.
This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2024-01-28 23:08:30 +08:00
parent 2f22fa79f6
commit 7bd5a06875
6 changed files with 336 additions and 39 deletions
+8 -6
View File
@@ -14,13 +14,15 @@ jobs:
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
if: success()
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Run tests
run: go test -v ./... -covermode=count
@@ -29,7 +31,7 @@ jobs:
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
- name: Checkout code