Skip to content

Commit 8e089ed

Browse files
Adapted CI run to mocking mechanism
1 parent 29f19bd commit 8e089ed

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/test.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,16 @@ jobs:
3737
shell: bash
3838
run: |
3939
go build ./...
40-
- name: Lint
40+
- name: Lint with mock back-end
4141
uses: golangci/golangci-lint-action@v3
4242
with:
4343
version: latest
44-
args: --config=.golangci-lint.yaml
44+
args: --config=.golangci-lint.yaml --build-tags="gowslmock"
45+
- name: Lint with real back-end
46+
uses: golangci/golangci-lint-action@v3
47+
with:
48+
version: latest
49+
args: --config=.golangci-lint.yaml
4550

4651
vm-setup:
4752
name: "Set up Azure VM"

.golangci-lint.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# golangci-lint run -c .golangci-lint.yaml
33
# Locally, you can use
44
# golangci-lint run -c .golangci-lint.yaml --fix
5+
#
6+
# Use argument --build-tags="gowslmock" to lint the mock files.
57

68
linters:
79
# linters to run in addition to default ones

0 commit comments

Comments
 (0)