mirror of https://github.com/portainer/portainer
chore(lint): add golangci linter to GitHub workflow EE-4872 (#8366)
parent
5b02f636d7
commit
8dec95c2cd
|
@ -23,6 +23,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.19.4
|
||||||
- run: yarn --frozen-lockfile
|
- run: yarn --frozen-lockfile
|
||||||
|
|
||||||
- name: Run linters
|
- name: Run linters
|
||||||
|
@ -36,3 +39,9 @@ jobs:
|
||||||
gofmt_dir: api/
|
gofmt_dir: api/
|
||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
uses: icrawl/action-tsc@v1
|
uses: icrawl/action-tsc@v1
|
||||||
|
- name: GolangCI-Lint
|
||||||
|
uses: golangci/golangci-lint-action@v3
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
working-directory: api
|
||||||
|
args: -c .golangci.yaml
|
||||||
|
|
Loading…
Reference in New Issue