Production 2024-09-10_01 #5338
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: | |
tags: | |
- v* | |
branches: | |
- master | |
- prod | |
- dev | |
pull_request: | |
branches: | |
- master | |
- prod | |
jobs: | |
golangci-libs: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.19' | |
- name: golangci-lint-libs | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
working-directory: libs | |
version: v1.50.1 | |
args: --timeout 3m | |
golangci-services: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.19' | |
- name: golangci-lint-services | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
working-directory: services | |
version: v1.50.1 | |
args: --timeout 3m | |
golangci-tools: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.19' | |
- name: golangci-lint-tools | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
working-directory: tools | |
version: v1.50.1 | |
args: --timeout 3m | |
golangci-cmd: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.19' | |
- name: golangci-lint-cmd | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
working-directory: cmd | |
version: v1.50.1 | |
args: --timeout 3m | |
golangci-main: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.19' | |
- name: golangci-lint-main | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
working-directory: main | |
version: v1.50.1 | |
args: --timeout 3m |