chore(lint): add golangci linter to GitHub workflow EE-4872 (#8366)

pull/8170/head
Prabhat Khera 2023-01-23 18:31:15 +13:00 committed by GitHub
parent 5b02f636d7
commit 8dec95c2cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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