From db1736a7f5f472b47ce150323a67ce36811b8b57 Mon Sep 17 00:00:00 2001 From: Uzair Ali <72073401+uzaxirr@users.noreply.github.com> Date: Thu, 12 Jan 2023 18:29:54 +0530 Subject: [PATCH] Added Go Module and Go Path --- .github/workflows/golangci-lint.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ebfa63e..82d4e50 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,14 +11,14 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - - name: Build - run: go build -v - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: v1.29 - \ No newline at end of file + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.19 + - name: Install golangci-lint + run: | + GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.30.0 + - name: Lint code + run: golangci-lint run