github.com/gogf/gf/v2@v2.7.4/.github/workflows/golangci-lint.yml (about) 1 # Tencent is pleased to support the open source community by making Polaris available. 2 # 3 # Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. 4 # 5 # Licensed under the BSD 3-Clause License (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # https://opensource.org/licenses/BSD-3-Clause 10 # 11 # Unless required by applicable law or agreed to in writing, software distributed 12 # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 # specific language governing permissions and limitations under the License. 15 16 name: GolangCI-Lint 17 on: 18 push: 19 branches: 20 - master 21 - develop 22 - personal/** 23 - feature/** 24 - enhance/** 25 - fix/** 26 pull_request: 27 branches: 28 - master 29 - develop 30 - personal/** 31 - feature/** 32 - enhance/** 33 - fix/** 34 35 jobs: 36 golangci: 37 strategy: 38 matrix: 39 go-version: [ '1.18','1.19','1.20','1.21.4','1.22','1.23' ] 40 name: golangci-lint 41 runs-on: ubuntu-latest 42 steps: 43 - name: Checkout 44 uses: actions/checkout@v4 45 - name: Setup Golang ${{ matrix.go-version }} 46 uses: actions/setup-go@v5 47 with: 48 go-version: ${{ matrix.go-version }} 49 - name: golangci-lint 50 uses: golangci/golangci-lint-action@v6 51 with: 52 # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. 53 version: v1.60.1 54 args: --timeout 3m0s