fix: make lint&ci happy

This commit is contained in:
源文雨 2025-10-01 00:25:44 +08:00
parent 4aace203cf
commit 4481ea4861
4 changed files with 8 additions and 1 deletions

View File

@ -22,6 +22,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@master
with:
fetch-depth: 0
- name: gomod2nix update
run: |

View File

@ -27,6 +27,8 @@ jobs:
fail-fast: true
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Setup Go environment
uses: actions/setup-go@master
with:

View File

@ -32,11 +32,12 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Tidy Modules
run: |
go mod tidy
go generate main.go
go generate main.go
- name: golangci-lint
uses: golangci/golangci-lint-action@master

View File

@ -12,6 +12,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Tidy Modules
run: |