mirror of https://github.com/vishvananda/netns
ci(lint): setup YAML Lint step (#68)
Setup YAMLLint --------- Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
parent
7a452d2d15
commit
59920981a6
|
@ -4,6 +4,7 @@ updates:
|
|||
directory: "/"
|
||||
schedule:
|
||||
interval: "monthly"
|
||||
|
||||
- package-ecosystem: "gomod" # Dependencies listed in go.mod
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
|
|
|
@ -40,6 +40,4 @@ jobs:
|
|||
go mod tidy
|
||||
git diff --exit-code
|
||||
- name: Test
|
||||
run: |
|
||||
go test -exec "sudo -n" -v ./...
|
||||
|
||||
run: go test -exec "sudo -n" -v ./...
|
||||
|
|
|
@ -32,7 +32,12 @@ jobs:
|
|||
go-version: ${{ matrix.go-version }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Lint
|
||||
- name: YAML Lint
|
||||
if: runner.os == 'Linux'
|
||||
uses: ibiqlik/action-yamllint@v3
|
||||
with:
|
||||
format: auto
|
||||
- name: Golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: latest
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
document-start: disable
|
||||
line-length: disable
|
||||
truthy:
|
||||
ignore: |
|
||||
.github/workflows/*.yml
|
Loading…
Reference in New Issue