-
Notifications
You must be signed in to change notification settings - Fork 17
58 lines (58 loc) · 1.56 KB
/
static_checks.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
name: Static checks
on:
pull_request: {}
push:
branches:
- main
jobs:
go_lint:
name: Go lint
timeout-minutes: 10
runs-on: ubuntu-20.04
container:
image: golang:1.19
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Go lint
run: bin/lint --verbose
go_format:
name: Go format
timeout-minutes: 10
runs-on: ubuntu-20.04
container:
image: golang:1.19
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Format
run: bin/fmt
shellcheck:
name: shellcheck
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: shellcheck
# For more information on shellcheck failures:
# https://github.com/koalaman/shellcheck/wiki/Checks
run: |
bin/shellcheck -x -P "./bin" $(grep -rnsle '^#!/usr/bin/env \(bash\|sh\)' ./* | xargs)
markdown_lint:
name: Markdown lint
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Markdown lint
run: bin/markdownlint ./**/*.md --ignore node_modules/
chart_docs_diff:
name: Chart readme diff check
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Check docs for diff
run: bin/helm-docs-diff