From dd1527cb9bc2be22bbef03502feb2e9a513a1f9e Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Mon, 12 Aug 2019 13:41:38 -0400 Subject: [PATCH 1/5] workflow: go.yml Add github workflow for CI --- .github/workflows/go.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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 000000000000..a1296f286c70 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,35 @@ +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 + use: actions/checkout@master + path: ${{ go.module-path }} + + - name: Get dependencies + working-directory: ${{ go.module-path }} + run: make deps lint-deps + + - name: Build + working-directory: ${{ go.module-path }} + run: go build -v . + + - name: Lint + working-directory: ${{ go.module-path }} + run: make check + + - name: Test + working-directory: ${{ go.module-path }} + run: make test + From dd707f18df3b2449a74b7848819906cb0625069a Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Mon, 12 Aug 2019 13:47:14 -0400 Subject: [PATCH 2/5] Update go.yml --- .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 a1296f286c70..ed61d734b61f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,7 +14,7 @@ jobs: id: go - name: Check out code into the Go module directory - use: actions/checkout@master + uses: actions/checkout@master path: ${{ go.module-path }} - name: Get dependencies From 32154f967876a18f6446d379906a7477791b160d Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Mon, 12 Aug 2019 13:53:36 -0400 Subject: [PATCH 3/5] well this is a terrible experience --- .github/workflows/go.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ed61d734b61f..14428da9de85 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,7 +15,8 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@master - path: ${{ go.module-path }} + with: + path: ${{ go.module-path }} - name: Get dependencies working-directory: ${{ go.module-path }} From a3e1584e664326a12ed94d34f72b01bbf402d86c Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Mon, 12 Aug 2019 14:11:21 -0400 Subject: [PATCH 4/5] Update go.yml --- .github/workflows/go.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 14428da9de85..486051a34a12 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,22 +15,16 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@master - with: - path: ${{ go.module-path }} - name: Get dependencies - working-directory: ${{ go.module-path }} run: make deps lint-deps - name: Build - working-directory: ${{ go.module-path }} run: go build -v . - name: Lint - working-directory: ${{ go.module-path }} run: make check - name: Test - working-directory: ${{ go.module-path }} run: make test From fda75f21dacd02da5081a2023c2ac655e83f56ce Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Mon, 12 Aug 2019 14:14:29 -0400 Subject: [PATCH 5/5] Update go.yml --- .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 486051a34a12..61e6347db14f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@master - name: Get dependencies - run: make deps lint-deps + run: make deps - name: Build run: go build -v .