/golangci-lint

GitHub Action for interacting with GolangCI-Lint

Primary LanguageDockerfileMIT LicenseMIT

GitHub Action for GolangCI-Lint

This action wraps the GolangCI-Lint CLI to enable commands.

Usage

An example workflow to test and build follows:

workflow "Lint" {
  on = "push"
  resolves = ["Lint"]
}

action "Lint" {
  uses = "actions-contrib/golangci-lint@master"
  args = ["run","--new-from-rev=HEAD~"]
  env={
    PROJECT_PATH = "./backend"
  }
}

Configuration

PROJECT_PATH - specifies the path from which the golangci-lint will be run

License

This project is open source software released under the MIT license.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.