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
+5 -4
View File
@@ -10,13 +10,14 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set Golang
uses: actions/setup-go@v4
with:
go-version: "1.21.x"
- name: Checkout code
uses: actions/checkout@v4
- name: Set Golang
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
- name: Check spelling with custom config file
uses: crate-ci/typos@master
with: