Skip to content

Commit

Permalink
Adapted CI run to mocking mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Mar 8, 2023
1 parent aefe744 commit 48f6456
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions .golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48f6456

Please sign in to comment.