Skip to content

Commit

Permalink
comment golangci
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvanagit committed Aug 2, 2024
1 parent f0da7d1 commit ea13f34
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 72 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/golang-ci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: '1.22.2'
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.58.1
skip-go-installation: true

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
args: >-
--skip-dirs=admiral/pkg/client/clientset/versioned
--tests=false
--timeout=5m
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
#name: golangci-lint
#on:
# push:
# tags:
# - v*
# branches:
# - master
# - main
# pull_request:
#jobs:
# golangci:
# name: lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v3
# with:
# go-version: '1.22.2'
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v2
# with:
# # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
# version: v1.58.1
# skip-go-installation: true
#
# # Optional: working directory, useful for monorepos
# # working-directory: somedir
#
# # Optional: golangci-lint command line arguments.
# args: >-
# --skip-dirs=admiral/pkg/client/clientset/versioned
# --tests=false
# --timeout=5m
#
# # Optional: show only new issues if it's a pull request. The default value is `false`.
# # only-new-issues: true
72 changes: 36 additions & 36 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: '1.22.3'
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.58.1
skip-go-installation: true

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
args: >-
--skip-dirs=admiral/pkg/client/clientset/versioned
--tests=false
--timeout=5m || true
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
#name: golangci-lint
#on:
# push:
# tags:
# - v*
# branches:
# - master
# - main
# pull_request:
#jobs:
# golangci:
# name: lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v3
# with:
# go-version: '1.22.3'
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v2
# with:
# # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
# version: v1.58.1
# skip-go-installation: true
#
# # Optional: working directory, useful for monorepos
# # working-directory: somedir
#
# # Optional: golangci-lint command line arguments.
# args: >-
# --skip-dirs=admiral/pkg/client/clientset/versioned
# --tests=false
# --timeout=5m || true
#
# # Optional: show only new issues if it's a pull request. The default value is `false`.
# # only-new-issues: true

0 comments on commit ea13f34

Please sign in to comment.