Skip to content

flipgroup/action-golang-with-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Action Golang with golangci-lint

GitHub Action for setting up Golang via actions/setup-go coupled with golangci/golangci-lint-action for source linting.

At completion of Action, runner will be left with the desired Golang version, ready for running additional quality of life operations - such as go test.

Note: internally, golangci/golangci-lint-action provides caching of the Golang build and module cache directories - so no requirement to handle this from within the composite action itself.

Usage

jobs:
  main:
    name: Use Golang
    runs-on: ubuntu-latest
    steps:
      - name: Setup Golang with lint
        uses: flipgroup/action-golang-with-lint@main
        with:
          version-golang-file: go.mod
          # alternatively, use `version-golang` input
          #version-golang: ~1.20
          version-golangci-lint: v1.53.3

About

GitHub Action for setting up Golang coupled with linting via golangci-lint.

Topics

Resources

License

Stars

Watchers

Forks