1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-06 01:20:24 +08:00

chore: make lint happy

This commit is contained in:
源文雨
2025-05-13 20:26:17 +09:00
parent a99f02bda1
commit 1683db37d0
2 changed files with 26 additions and 26 deletions

View File

@@ -9,16 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@master
with:
go-version: ^1.18
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@master
- name: Get dependencies
run: |
go get -v -t -d ./...
run: go mod tidy
- name: Build
run: go build -v ./...
@@ -30,8 +29,15 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
- name: Set up Go 1.x
uses: actions/setup-go@master
with:
version: latest
go-version: "1.20"
- name: Check out code into the Go module directory
uses: actions/checkout@master
- name: golangci-lint
uses: golangci/golangci-lint-action@master
with:
version: latest