-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (39 loc) · 1021 Bytes
/
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/[email protected]
- name: Configure Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install yamllint
run: pip install yamllint==1.34.0
- name: Run yamllint
run: yamllint .
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Run ShellCheck
uses: ludeeus/[email protected]
with:
check_together: "yes"
env:
SHELLCHECK_OPTS: -e SC2034 --shell=bash
shfmt:
name: Shell format
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
- name: Check formatting
run: shfmt -s -d .