mirror of
https://github.com/gomods/athens
synced 2026-02-03 08:40:31 +00:00
chore: use builtin action linter package (#1836)
* chore: use builtin action linter package * fix: skip caches in golangci-lint --------- Co-authored-by: Manu Gupta <manugupt1@gmail.com>
This commit is contained in:
@@ -7,6 +7,9 @@ on:
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GOLANGCI_LINT_VERSION: v1.51.2
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Go
|
||||
@@ -15,7 +18,11 @@ jobs:
|
||||
go-version-file: 'go.mod'
|
||||
cache: true
|
||||
- name: Lint code
|
||||
run: make lint-docker
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
||||
skip-pkg-cache: true
|
||||
skip-build-cache: true
|
||||
|
||||
build:
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user