-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (36 loc) · 1.02 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Lint
on:
push:
branches: [main, release-*]
pull_request:
branches: [main, release-*]
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
include:
- go-path: tools/mdctl
- go-path: specs-go
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
with:
go-version-file: specs-go/go.mod
cache: false
- name: Golangci lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
working-directory: ${{ matrix.go-path }}
args: --config $GITHUB_WORKSPACE/.golangci.yml --verbose
- name: Markdown lint
uses: docker://avtodev/markdown-lint:v1@sha256:6aeedc2f49138ce7a1cd0adffc1b1c0321b841dc2102408967d9301c031949ee
with:
config: '.markdownlint.yml'
args: '**/*.md'