升级go.mod到1.17

This commit is contained in:
fumiama
2021-08-27 16:23:18 +08:00
parent 35f9bb3758
commit 39141d54a4
4 changed files with 46 additions and 15 deletions

View File

@@ -2,14 +2,12 @@ name: PullLint
on: [pull_request]
jobs:
golangci:
strategy:
go-version: 1.17.x
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@master
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest

View File

@@ -2,14 +2,12 @@ name: PushLint
on: [push]
jobs:
golangci:
strategy:
go-version: 1.17.x
name: lint_golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@master
with:
version: latest
args: --issues-exit-code=0