Skip to content

Commit

Permalink
Use actions/setup-go@v2 in GitHub Actions. (#118)
Browse files Browse the repository at this point in the history
Fixes issues with addlicense requiring Go v1.16+.

Signed-off-by: Piotr Sikora <[email protected]>
  • Loading branch information
PiotrSikora authored Aug 12, 2021
1 parent abd0f54 commit 375a366
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16'

- name: Check licenses
run: |
go get -u github.com/google/addlicense
go install github.com/google/addlicense@latest
export PATH=$PATH:$(go env GOPATH)/bin
addlicense -check .
Expand All @@ -46,6 +49,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16'

- name: Cache
uses: actions/cache@v2
Expand All @@ -67,7 +73,7 @@ jobs:

- name: Format (buildifier)
run: |
GO111MODULE=on go get -u github.com/bazelbuild/buildtools/buildifier@3.4.0
go install github.com/bazelbuild/buildtools/buildifier@latest
export PATH=$PATH:$(go env GOPATH)/bin
buildifier -mode=check WORKSPACE
buildifier -mode=check BUILD
Expand Down

0 comments on commit 375a366

Please sign in to comment.