From 48f6456b0a1fd2dd897389f7050807feb8aa5a64 Mon Sep 17 00:00:00 2001 From: EduardGomezEscandell Date: Wed, 8 Mar 2023 15:38:59 +0100 Subject: [PATCH] Adapted CI run to mocking mechanism --- .github/workflows/test.yaml | 9 +++++++-- .golangci-lint.yaml | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 413fde65..1748ad6a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -37,11 +37,16 @@ jobs: shell: bash run: | go build ./... - - name: Lint + - name: Lint with mock back-end uses: golangci/golangci-lint-action@v3 with: version: latest - args: --config=.golangci-lint.yaml + args: --config=.golangci-lint.yaml --build-tags="gowslmock" + - name: Lint with real back-end + uses: golangci/golangci-lint-action@v3 + with: + version: latest + args: --config=.golangci-lint.yaml vm-setup: name: "Set up Azure VM" diff --git a/.golangci-lint.yaml b/.golangci-lint.yaml index 579cd99d..8cd6b51f 100644 --- a/.golangci-lint.yaml +++ b/.golangci-lint.yaml @@ -2,6 +2,8 @@ # golangci-lint run -c .golangci-lint.yaml # Locally, you can use # golangci-lint run -c .golangci-lint.yaml --fix +# +# Use argument --build-tags="gowslmock" to lint the mock files. linters: # linters to run in addition to default ones