Skip to content

Commit

Permalink
Add GitHub Actions step to install Go 1.14 and set up Golint (#363)
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih authored Jul 5, 2022
1 parent a3e746d commit 491b75c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 4 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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

Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 491b75c

Please sign in to comment.