forked from dragonflyoss/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (29 loc) · 862 Bytes
/
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
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
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: '0'
- name: Golangci lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
with:
version: v1.62
args: --verbose --timeout=10m
- name: Markdown lint
uses: docker://avtodev/markdown-lint:v1@sha256:6aeedc2f49138ce7a1cd0adffc1b1c0321b841dc2102408967d9301c031949ee
with:
config: '.markdownlint.yml'
args: '**/*.md'
ignore: 'deploy/helm-charts manager/console CHANGELOG.md build'