Skip to content

Commit

Permalink
fix CI linting
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
  • Loading branch information
joelanford committed Apr 9, 2022
1 parent 4d0a190 commit 32a41d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ~1.17
go-version: ~1.16
id: go

- name: Check out code into the Go module directory
Expand All @@ -36,7 +36,7 @@ jobs:
run: go mod download

- name: check
run: make fix
run: make lint fix

- name: Test
run: make test
Expand All @@ -48,19 +48,6 @@ jobs:
with:
path-to-profile: cover.out

lint:
name: Lint
runs-on: ubuntu-latest
steps:

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.35.2

go-apidiff:
name: go-apidiff
if: github.event_name == 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fix:
# Run various checks against code
.PHONY: lint
lint:
fetch golangci-lint 1.43.0 && golangci-lint run
fetch golangci-lint 1.45.2 && golangci-lint run

.PHONY: release
release: GORELEASER_ARGS ?= --snapshot --rm-dist --skip-sign
Expand Down

0 comments on commit 32a41d9

Please sign in to comment.