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 - name: Check out code into the Go module directory
uses: actions/checkout@master uses: actions/checkout@master
with:
fetch-depth: 0
- name: gomod2nix update - name: gomod2nix update
run: | run: |

View File

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

View File

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

View File

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