Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix lint job #2067

Merged
merged 3 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:

go-modules:
name: Setup go
runs-on: ubuntu-latest-4-cores
runs-on: ubuntu-latest

steps:
- name: Checkout repo
Expand All @@ -96,7 +96,7 @@ jobs:
check-imports:
name: Check imports
needs: go-modules
runs-on: ubuntu-latest-4-cores
runs-on: ubuntu-latest

steps:
- name: Checkout repo
Expand All @@ -112,7 +112,7 @@ jobs:

lint:
name: Lint code
runs-on: ubuntu-latest-4-cores
runs-on: ubuntu-latest
needs: go-modules

steps:
Expand All @@ -125,10 +125,7 @@ jobs:
check-latest: false
cache: true
- name: Run linter
uses: golangci/golangci-lint-action@v3
with:
skip-pkg-cache: true
only-new-issues: true
run: make lint

unit-tests:
name: Unit tests
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ linters:
- misspell
# - staticcheck
- unconvert
- unused
# - unused

# - gosec
# - errcheck
Expand Down