commit e3d46f17f3f72d33fcf91cc6f6cbe66913f6c722 parent 0b59fe8082f067f3f7ef69b66677dc1a269e1391 Author: Brian C. Lane <bcl@users.noreply.github.com> Date: Sat, 7 Mar 2020 08:59:39 -0800 Add golang build workflow Diffstat:
A | .github/workflows/go.yml | | | 34 | ++++++++++++++++++++++++++++++++++ |
1 file changed, 34 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml @@ -0,0 +1,34 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.14 + uses: actions/setup-go@v1 + with: + go-version: 1.14 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + go get -v -t -d ./... + if [ -f Gopkg.toml ]; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + dep ensure + fi + + - name: Build + run: go build -v .