From 971e580b731710eb9300e791f14b19370c424535 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Mon, 29 Jul 2019 17:00:08 -0700 Subject: [PATCH 1/2] update to steps --- ci/go.properties.json | 6 ++++++ ci/go.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 ci/go.properties.json create mode 100644 ci/go.yml diff --git a/ci/go.properties.json b/ci/go.properties.json new file mode 100644 index 0000000..4b751a3 --- /dev/null +++ b/ci/go.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Go", + "description": "Build a Go project.", + "iconName": "go", + "category": ["Go"] +} \ No newline at end of file diff --git a/ci/go.yml b/ci/go.yml new file mode 100644 index 0000000..c9c36cb --- /dev/null +++ b/ci/go.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@master + with: + version: 1.12 + id: go + + - name: Check out code into the Go module directory + checkout: true + 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 . From 2650f99c701c4d8dffffeed60f9ba91cad2cfd2c Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Tue, 30 Jul 2019 08:14:11 -0700 Subject: [PATCH 2/2] update to new syntax --- ci/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/go.yml b/ci/go.yml index c9c36cb..f560308 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -14,7 +14,7 @@ jobs: id: go - name: Check out code into the Go module directory - checkout: true + use: actions/checkout@master path: ${{ go.module-path }} - name: Get dependencies