From 491b75cc8aec16cd72aaa3e9f3ef99fce0f23953 Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Tue, 5 Jul 2022 17:38:54 +0530 Subject: [PATCH] Add GitHub Actions step to install Go 1.14 and set up Golint (#363) Signed-off-by: Niladri Halder --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++-- .github/workflows/pull_request.yml | 26 ++++++++++++++++++++++++-- 2 files changed, 48 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e90dca01..a70cd40f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,6 +54,15 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Set up Go 1.14 + uses: actions/setup-go@v3 + with: + go-version: '1.14' + check-latest: true + + - name: Set up golint + run: go get -u golang.org/x/lint/golint + - name: Build run: make build @@ -68,9 +77,13 @@ jobs: uses: actions/checkout@v2 - name: Set up Go 1.14 - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.14.7 + go-version: '1.14' + check-latest: true + + - name: Set up golint + run: go get -u golang.org/x/lint/golint - name: Build run: make build @@ -85,6 +98,15 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Set up Go 1.14 + uses: actions/setup-go@v3 + with: + go-version: '1.14' + check-latest: true + + - name: Set up golint + run: go get -u golang.org/x/lint/golint + - name: Build run: make build diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 64c42634..5778e1dc 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -50,6 +50,15 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Set up Go 1.14 + uses: actions/setup-go@v3 + with: + go-version: '1.14' + check-latest: true + + - name: Set up golint + run: go get -u golang.org/x/lint/golint + - name: Build run: make build @@ -64,9 +73,13 @@ jobs: uses: actions/checkout@v2 - name: Set up Go 1.14 - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.14.7 + go-version: '1.14' + check-latest: true + + - name: Set up golint + run: go get -u golang.org/x/lint/golint - name: Build run: make build @@ -81,6 +94,15 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Set up Go 1.14 + uses: actions/setup-go@v3 + with: + go-version: '1.14' + check-latest: true + + - name: Set up golint + run: go get -u golang.org/x/lint/golint + - name: Build run: make build