Skip to content

How can i get more detail infos in the golang-lint-action #618

@jnan806

Description

@jnan806

Welcome

  • Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).

Description of the problem

the logs is too few, and i cannot judge what the problem in the logs.

How can i get more detail infos in the golang-lint-action

image

In local, if i exec the command directly , it will print the detail infos, like following:
image

Version of golangci-lint

latest

Version of the GitHub Action

golangci/golangci-lint-action@v3

Workflow file

jobs:

  lint:
    name: Lint check
    runs-on: ubuntu-latest
    steps:

    - name: Set up Go
      uses: actions/setup-go@v3
      with:
        go-version: 1.18

    - name: Check out code into the Go module directory
      uses: actions/checkout@v3

    - name: Golangci Lint
      # https://golangci-lint.run/
      uses: golangci/golangci-lint-action@v3
      with:
        version: latest

Go version

1.18

Code example or link to a public repository

https://github.com/opensergo/opensergo-go-sdk/actions/runs/3627078730/jobs/6116638569

.golangci.yml

# Options for analysis running.
run:
  # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
  skip-dirs-use-default: true
  skip-dirs:
    - pkg/proto
    - samples
    - pkg/common/logging/samples
  skip-files:
    - ".*\\.pb\\.go$"
# output configuration options
output:
  format: colored-line-number
# Refer to https://golangci-lint.run/usage/linters
linters-settings:
  govet:
    # Disable analyzers by name.
    # Run `go tool vet help` to see all analyzers.
    disable:
      - stdmethods
linters:
  disable-all: true
  enable:
    - goimports
    - gofmt
    - misspell
    - govet
    - ineffassign
    - staticcheck
issues:
  exclude-use-default: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions