Skip to content

Commit a719475

Browse files
Adapted CI run to mocking mechanism
1 parent 2633ece commit a719475

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,16 @@ jobs:
3737
shell: bash
3838
run: |
3939
go build ./...
40-
- name: Lint
41-
uses: golangci/golangci-lint-action@v3
40+
- name: Lint with mock back-end
41+
uses: golangci/golangci-lint-action@v3 --build-tags="mock"
4242
with:
4343
version: latest
4444
args: --config=.golangci-lint.yaml
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

Lines changed: 2 additions & 0 deletions
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="mock" to lint the mock files.
57

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

0 commit comments

Comments
 (0)