-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (61 loc) · 1.63 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
on:
push:
pull_request:
workflow_dispatch:
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
cancel-in-progress: true
jobs:
# golangci:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# go: [ '1.16', '1.17' ]
# steps:
# - uses: actions/checkout@v3
# - name: Install Go
# uses: actions/setup-go@v2
# with:
# go-version: ${{ matrix.go }}
# - name: Run Revive Action by building from repository
# uses: morphy2k/[email protected]
# with:
# exclude: "./vendor/..."
# name: "Revive"
# - name: Install golangci-lint
# run: go install "./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint/..."
# - name: Run linters
# run: make GO_REQUIRED_MIN_VERSION:= check
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
version: v0.7.2
ignore_paths: .git vendor
bashate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Setup bashate
run: python -m pip install bashate
- name: Run bashate
run: make check-bashate
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Markdown Lint
uses: ruzickap/action-my-markdown-linter@v1
with:
config_file: .markdownlint.yaml
exclude: vendor/