Skip to content

Commit

Permalink
ci: setup go before linting (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbrunet authored Jul 22, 2022
1 parent cc0ae78 commit 7511397
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ jobs:
with:
fetch-depth: 2

- name: Set up Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1
with:
# renovate: datasource=docker depName=golang
go-version: 1.18.4

- name: Set up Go mod cache
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # tag=v3.0.5
with:
path: ~/go/pkg/mod
key: gomod-${{ hashFiles('**/go.sum') }}

- name: Run golangci-lint
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc # tag=v3.2.0
with:
Expand Down

0 comments on commit 7511397

Please sign in to comment.