-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (39 loc) · 1.14 KB
/
lint.yaml
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
name: Linting
on: pull_request
jobs:
yaml-lint:
name: Run yaml linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Configure Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install yamllint
run: pip install yamllint==1.24.2
- name: Run yamllint
run: yamllint .
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38
with:
check_together: "yes"
env:
SHELLCHECK_OPTS: -e SC2034 --shell=bash
shfmt:
name: Shell format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-go@v4
with:
go-version: 1.18.x
- name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
- name: Check formatting
run: shfmt -s -d .