From 2ba17b4126251944cec6586af4c3b08d49f687bd Mon Sep 17 00:00:00 2001 From: vilmibm Date: Fri, 20 Dec 2019 10:24:34 -0600 Subject: [PATCH 1/3] build on all three supported OSs --- .github/workflows/go.yml | 42 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 012babbad..190bccce0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,7 +1,7 @@ name: Go on: [push] jobs: - build: + build-linux: name: Build runs-on: ubuntu-latest steps: @@ -21,3 +21,43 @@ jobs: run: | go test ./... go build -v . + build-windows: + name: Build + runs-on: windows-latest + steps: + - name: Set up Go 1.13 + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + + - name: Verify dependencies + run: go mod verify + + - name: Build + run: | + go test ./... + go build -v . + build-macos: + name: Build + runs-on: macos-latest + steps: + - name: Set up Go 1.13 + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + + - name: Verify dependencies + run: go mod verify + + - name: Build + run: | + go test ./... + go build -v . From 5c05b60ab210f94d2ebc032c485e0f7947cfac65 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Fri, 20 Dec 2019 10:29:12 -0600 Subject: [PATCH 2/3] give unique names --- .github/workflows/go.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 190bccce0..d8773d977 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,7 +2,7 @@ name: Go on: [push] jobs: build-linux: - name: Build + name: Linux Build runs-on: ubuntu-latest steps: - name: Set up Go 1.13 @@ -22,7 +22,7 @@ jobs: go test ./... go build -v . build-windows: - name: Build + name: Windows Build runs-on: windows-latest steps: - name: Set up Go 1.13 @@ -42,7 +42,7 @@ jobs: go test ./... go build -v . build-macos: - name: Build + name: MacOS Build runs-on: macos-latest steps: - name: Set up Go 1.13 From 2e192d72842ccacf9570df13914ef19af8e6386b Mon Sep 17 00:00:00 2001 From: Nate Smith Date: Mon, 23 Dec 2019 22:00:58 -0600 Subject: [PATCH 3/3] be more descriptive --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d8773d977..60a11b027 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,4 +1,4 @@ -name: Go +name: Tests on: [push] jobs: build-linux: