From b7267badb977607c618cb2e4202674bb1db305f1 Mon Sep 17 00:00:00 2001 From: Mel Boyce Date: Sat, 29 Feb 2020 22:18:25 +1100 Subject: [PATCH 1/4] Create go.yml --- .github/workflows/go.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..0944c70 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,20 @@ +name: go +on: [push] +jobs: + + build: + name: build + runs-on: ubuntu-latest + steps: + + - name: set up go + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + + - name: check out + uses: actions/checkout@v2 + + - name: vet and build + run: go vet ./... && go build From 3122cfa5cbdf64ee0515b1a79aac719103df311c Mon Sep 17 00:00:00 2001 From: Mel Boyce Date: Sat, 29 Feb 2020 22:22:18 +1100 Subject: [PATCH 2/4] Update go.yml --- .github/workflows/go.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0944c70..99c633f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,6 +15,9 @@ jobs: - name: check out uses: actions/checkout@v2 + + - name: go get + run: go get -u -v ./... - name: vet and build run: go vet ./... && go build From 7b607b0a870b3a6ac97f66e1698b1e73a59c20e4 Mon Sep 17 00:00:00 2001 From: Mel Boyce Date: Sat, 29 Feb 2020 22:25:23 +1100 Subject: [PATCH 3/4] Update go.yml --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 99c633f..14b75a0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,8 +16,8 @@ jobs: - name: check out uses: actions/checkout@v2 - - name: go get - run: go get -u -v ./... + - name: deps + run: go get -v -t -d ./... - name: vet and build run: go vet ./... && go build From 47e285012a444fe1e2d6345e36a7ddcca9c37d91 Mon Sep 17 00:00:00 2001 From: Mel Boyce Date: Sat, 29 Feb 2020 22:29:18 +1100 Subject: [PATCH 4/4] rename and update --- .github/workflows/{go.yml => vet-and-build.yml} | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) rename .github/workflows/{go.yml => vet-and-build.yml} (70%) diff --git a/.github/workflows/go.yml b/.github/workflows/vet-and-build.yml similarity index 70% rename from .github/workflows/go.yml rename to .github/workflows/vet-and-build.yml index 14b75a0..e32fd4b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/vet-and-build.yml @@ -1,13 +1,11 @@ -name: go +name: vet-and-build on: [push] jobs: - build: name: build runs-on: ubuntu-latest steps: - - - name: set up go + - name: set up uses: actions/setup-go@v1 with: go-version: 1.13 @@ -19,5 +17,8 @@ jobs: - name: deps run: go get -v -t -d ./... - - name: vet and build - run: go vet ./... && go build + - name: vet + run: go vet ./... + + - name: build + run: go build