From 211235d8da5d1c6c381fe4d579b0f9b7dcbcca79 Mon Sep 17 00:00:00 2001 From: Zygimantas <5236121+Zygimantass@users.noreply.github.com> Date: Fri, 22 Dec 2023 18:18:01 +0100 Subject: [PATCH] fix: golint --- .github/workflows/lint.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e179838..acd9a65 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,6 +13,9 @@ permissions: jobs: golangci: + strategy: + matrix: + module: ["util", "types"] name: golangci-lint runs-on: ubuntu-latest steps: @@ -20,15 +23,11 @@ jobs: with: go-version: 1.21.3 - uses: actions/checkout@v4 - - name: initialize workspace - run: | - go work init ||: - go work use ./util - go work use ./types - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: latest only-new-issues: true - args: --timeout=5m + args: --timeout=5 + working-directory: ${{ matrix.module }}