From 695dd3cbf9ba755912ed575cdc314736eb1084d1 Mon Sep 17 00:00:00 2001 From: Russ Egan Date: Fri, 7 Aug 2020 18:35:04 -0500 Subject: [PATCH] Create go.yml (#3) * Create go.yml * install tools first --- .github/workflows/go.yml | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..af4b9b1 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,44 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.14 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Debug + run: | + pwd + echo ${HOME} + echo ${GITHUB_WORKSPACE} + echo ${GOPATH} + echo ${GOROOT} + env: + GOPATH: /home/runner/work/go + + - name: Build + run: | + mkdir -p $GOPATH/bin + echo 'export PATH=$PATH:$GOPATH/bin' > runme.sh + echo 'make tools all' >> runme.sh + chmod +x runme.sh + ./runme.sh + env: + GOPATH: /home/runner/work/go +