File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
lint-samples :
13
13
runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ folder : [
17
+ " testdata/project-v4" ,
18
+ " testdata/project-v4-with-plugins" ,
19
+ " testdata/project-v4-multigroup"
20
+ ]
14
21
if : (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
15
22
steps :
16
23
- name : Clone the code
@@ -19,15 +26,16 @@ jobs:
19
26
uses : actions/setup-go@v5
20
27
with :
21
28
go-version-file : go.mod
29
+ - name : Prepare ${{ matrix.folder }}
30
+ working-directory : ${{ matrix.folder }}
31
+ run : go mod tidy
22
32
- name : Run linter
23
33
uses : golangci/golangci-lint-action@v6
24
34
with :
25
35
version : v1.59
26
- working-directory : testdata/project-v4
27
- args : --config .golangci.yml ./...
28
- - name : Run linter
29
- uses : golangci/golangci-lint-action@v6
30
- with :
31
- version : v1.59
32
- working-directory : testdata/project-v4-with-plugins
36
+ working-directory : ${{ matrix.folder }}
33
37
args : --config .golangci.yml ./...
38
+ - name : Run linter via makefile target
39
+ working-directory : ${{ matrix.folder }}
40
+ run : make lint
41
+
You can’t perform that action at this time.
0 commit comments