File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,31 @@ name: linter
3
3
4
4
permissions :
5
5
contents : read
6
+ pull-requests : read
6
7
7
8
jobs :
8
9
lint :
9
- permissions :
10
- contents : read # for actions/checkout to fetch code
11
- pull-requests : read # for golangci/golangci-lint-action to fetch pull requests
12
10
strategy :
13
11
matrix :
14
12
go-version : [1.x]
15
13
platform : [ubuntu-latest]
14
+
15
+ # golangci-lint will only process a single module, so we need to call it
16
+ # separately for each module in the repo. We dont lint example/newreposecretwithlibsodium
17
+ # since that needs libsodium to run.
18
+ working-directory :
19
+ - " "
20
+ - example
21
+ - scrape
22
+ - update-urls
16
23
runs-on : ${{ matrix.platform }}
17
24
18
25
steps :
19
26
- uses : actions/checkout@v3
20
27
21
- - name : golangci-lint
28
+ - name : golangci-lint ${{ matrix.working-directory }}
22
29
uses : golangci/golangci-lint-action@b517f99ae23d86ecc4c0dec08dcf48d2336abc29 # v2.5.2
23
30
with :
24
31
version : v1.44.0
32
+ working-directory : ${{ matrix.working-directory}}
25
33
args : --verbose
You can’t perform that action at this time.
0 commit comments