Skip to content

chore: added github-action for golangci-lint #24

chore: added github-action for golangci-lint

chore: added github-action for golangci-lint #24

Workflow file for this run

name: golangci-lint
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
branches:
- 'main'
- 'rc-*'
- 'hotfix-*'
- 'develop'
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- run: cd common-lib && go get oras.land/oras-go/pkg/auth/docker && go mod tidy && go mod download && go mod vendor
name: installing oras.land package
- name: golangci-lint-common-lib
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
args: --timeout=30m --verbose
only-new-issues: "true"
working-directory: common-lib
- name: golangci-lint-authenticator
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
working-directory: authenticator
args: --timeout=30m --verbose
only-new-issues: "true"
- name: golangci-lint-chart-sync
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
args: --timeout=30m --verbose
only-new-issues: "true"
working-directory: chart-sync
- name: golangci-lint-kubewatch
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
args: --timeout=30m --verbose
only-new-issues: "true"
working-directory: kubewatch
- name: golangci-lint-git-sensor
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
args: --timeout=30m --tests=false --verbose
only-new-issues: "true"
working-directory: git-sensor
- name: golangci-lint-kubelink
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
args: --timeout=30m --tests=false --verbose
only-new-issues: "true"
working-directory: kubelink
- name: golangci-lint-lens
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
args: --timeout=30m --tests=false --verbose
only-new-issues: "true"
working-directory: lens