GitHub Actions for Golang
Clone or download
Latest commit 3e54c02 Jan 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fmt update docs for release v0.2.0 Jan 15, 2019
lint update docs for release v0.2.0 Jan 15, 2019
LICENSE Initial commit Jan 3, 2019
README.md update docs for release v0.2.0 Jan 15, 2019

README.md

go-github-actions

A collection of GitHub Actions for use in Golang projects.

Actions

gofmt

Runs gofmt on files in the directory. Fails if any file is not properly formatted.

action "gofmt" {
  uses    = "sjkaliski/go-github-actions/fmt@v0.2.0"
  needs   = "previous-action"
  secrets = ["GITHUB_TOKEN"]

  env {
    GO_WORKING_DIR = "./path/to/go/files"
  }
}

To learn more about gofmt, visit the official docs.

golint

Runs golint on files in the directory. Failes if any file fails lint checks.

action "golint" {
  uses    = "sjkaliski/go-github-actions/lint@v0.2.0"
  needs   = "previous-action"
  secrets = ["GITHUB_TOKEN"]

  env {
    GO_WORKING_DIR = "./path/to/go/files"
    GO_LINT_PATHS  = "./pkg/... ./cmd/..."
  }
}

To learn more about golint, see the golint repository.