优化生成逻辑控制以及生成模板 #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: golangci-lint | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: read | |
checks: write | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
cache: false | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
args: --timeout=30m --issues-exit-code=0 | |
skip-cache: false | |
skip-pkg-cache: false | |
skip-build-cache: false | |
install-mode: "goinstall" |