8000 GitHub - cedrickring/golang-action at 1.1.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 2, 2021. It is now read-only.

cedrickring/golang-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Action

This Action allows you to run Go commands with your code. It will automatically setup your workspace (~/go/src/github.com/<your-name>/<repo>) before the command is run.

How to use

  1. Add an Action
  2. Enter "cedrickring/golang-action@1.1.0"
  3. If your repo builds with make or go build && go test, that's all you need. Otherwise, add a command in the args section like:
    go build -o my_executable main.go
    or run your make targets with
    make test

If your repository's import name is different from the path on GitHub, provide the import name by adding an environment variable IMPORT=import/name. This may be useful if you have forked an open source Go project.

If you prefer editing your main.workflow files by hand, use an action block like this:

action "ci" {
  uses="cedrickring/golang-action@1.1.0"

  # optional build command:
  args="./build.sh"

  # optional import name:
  env={
    IMPORT="root/repo"
  }
}

About

A GitHub Action to run Go commands

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 10

0