From 8dec95c2cdba722da1da733139de20e5537b6ef8 Mon Sep 17 00:00:00 2001 From: Prabhat Khera <91852476+prabhat-org@users.noreply.github.com> Date: Mon, 23 Jan 2023 18:31:15 +1300 Subject: [PATCH] chore(lint): add golangci linter to GitHub workflow EE-4872 (#8366) --- .github/workflows/lint.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f81a7a331..e032f3088 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,6 +23,9 @@ jobs: with: node-version: '14' cache: 'yarn' + - uses: actions/setup-go@v3 + with: + go-version: 1.19.4 - run: yarn --frozen-lockfile - name: Run linters @@ -36,3 +39,9 @@ jobs: gofmt_dir: api/ - name: Typecheck uses: icrawl/action-tsc@v1 + - name: GolangCI-Lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + working-directory: api + args: -c .golangci.yaml