File tree 4 files changed +32
-19
lines changed
4 files changed +32
-19
lines changed Original file line number Diff line number Diff line change 4
4
directory : " /"
5
5
schedule :
6
6
interval : " monthly"
7
+
7
8
- package-ecosystem : " gomod" # Dependencies listed in go.mod
8
- directory : " /" # Location of package manifests
9
+ directory : " /" # Location of package manifests
9
10
schedule :
10
11
interval : " weekly"
Original file line number Diff line number Diff line change 14
14
jobs :
15
15
test :
16
16
permissions :
17
- contents : read # for actions/checkout to fetch code
17
+ contents : read # for actions/checkout to fetch code
18
18
timeout-minutes : 10
19
19
20
20
strategy :
@@ -29,17 +29,15 @@ jobs:
29
29
os : [ubuntu-20.04, ubuntu-22.04, windows-2022]
30
30
runs-on : ${{ matrix.os }}
31
31
steps :
32
- - name : Install Go
33
- uses : actions/setup-go@v3
34
- with :
35
- go-version : ${{ matrix.go-version }}
36
- - name : Checkout code
37
- uses : actions/checkout@v3
38
- - name : go mod tidy
39
- run : |
40
- go mod tidy
41
- git diff --exit-code
42
- - name : Test
43
- run : |
44
- go test -exec "sudo -n" -v ./...
45
-
32
+ - name : Install Go
33
+ uses : actions/setup-go@v3
34
+ with :
35
+ go-version : ${{ matrix.go-version }}
36
+ - name : Checkout code
37
+ uses : actions/checkout@v3
38
+ - name : go mod tidy
39
+ run : |
40
+ go mod tidy
41
+ git diff --exit-code
42
+ - name : Test
43
+ run : go test -exec "sudo -n" -v ./...
Original file line number Diff line number Diff line change 14
14
jobs :
15
15
linters :
16
16
permissions :
17
- contents : read # for actions/checkout to fetch code
18
- pull-requests : read # for golangci/golangci-lint-action to fetch pull requests
17
+ contents : read # for actions/checkout to fetch code
18
+ pull-requests : read # for golangci/golangci-lint-action to fetch pull requests
19
19
timeout-minutes : 10
20
20
21
21
strategy :
32
32
go-version : ${{ matrix.go-version }}
33
33
- name : Checkout code
34
34
uses : actions/checkout@v3
35
- - name : Lint
35
+ - name : YAML Lint
36
+ if : runner.os == 'Linux'
37
+ uses : ibiqlik/action-yamllint@v3
38
+ with :
39
+ format : auto
40
+ - name : Golangci-lint
36
41
uses : golangci/golangci-lint-action@v3
37
42
with :
38
43
version : latest
Original file line number Diff line number Diff line change
1
+ ---
2
+ extends : default
3
+
4
+ rules :
5
+ document-start : disable
6
+ line-length : disable
7
+ truthy :
8
+ ignore : |
9
+ .github/workflows/*.yml
You can’t perform that action at this time.
0 commit comments