github.com/polarismesh/polaris@v1.17.8/.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 - main 21 - release* 22 pull_request: 23 branches: 24 - main 25 - release* 26 - feature/** 27 28 jobs: 29 golangci: 30 strategy: 31 matrix: 32 go-version: [ "1.20" ] 33 name: golangci-lint 34 runs-on: ubuntu-latest 35 steps: 36 - uses: actions/setup-go@v3 37 - uses: actions/checkout@v3 38 - name: golangci-lint 39 uses: golangci/golangci-lint-action@v3.6.0 40 with: 41 # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. 42 version: latest 43 args: --timeout=30m