Skip to content

Commit

Permalink
fix: build/lint is broken due to dependencies changes (argoproj#1958)
Browse files Browse the repository at this point in the history
Signed-off-by: zachaller <zachaller@hotmail.com>
  • Loading branch information
zachaller authored and jenciso committed Oct 25, 2022
1 parent 98bdf47 commit 012a4e1
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/go.yml
Expand Up @@ -7,26 +7,34 @@ on:
pull_request:
branches:
- "master"
env:
# Golang version to use across CI steps
GOLANG_VERSION: '1.17'

jobs:
lint-go:
name: Lint Go code
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: v1.30
version: v1.45.2
args: --timeout 5m
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: ${{ env.GOLANG_VERSION }}
id: go

- name: Check out code into the Go module directory
Expand Down Expand Up @@ -70,7 +78,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: 1.17.6
go-version: ${{ env.GOLANG_VERSION }}
# k8s codegen generates files into GOPATH location instead of the GitHub git checkout location
# This symlink is necessary to ensure that `git diff` detects changes
- name: Create symlink in GOPATH
Expand Down

0 comments on commit 012a4e1

Please sign in to comment.