From d3b141796d64ed08ec1f34a0390003b5cd82872f Mon Sep 17 00:00:00 2001 From: Daniel Fullarton Date: Fri, 9 Aug 2019 20:00:03 +1000 Subject: [PATCH] Update and rename main.workflow to main.yml --- .github/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/main.yml diff --git a/.github/main.yml b/.github/main.yml new file mode 100644 index 0000000..a94af40 --- /dev/null +++ b/.github/main.yml @@ -0,0 +1,31 @@ +name: Go +on: [push] +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.12 + uses: actions/setup-go@v1 + with: + version: 1.12 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@master + path: ${{ go.module-path }} + + - name: Get dependencies + working-directory: ${{ go.module-path }} + 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 + working-directory: ${{ go.module-path }} + run: go build -v .