-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 987 Bytes
/
lint_pr.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: Lint PR
permissions: read-all
on: # yamllint disable-line rule:truthy
pull_request:
branches: [main]
jobs:
shellcheck:
name: Run shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: shellcheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -x
with:
ignore_names: .zshrc .zprofile *.zsh
shfmt:
name: Run shfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: shfmt
uses: luizm/action-sh-checker@master
env:
SHFMT_OPTS: -s
with:
sh_checker_checkbashisms_enable: true
sh_checker_exclude: .zshrc .zprofile .zsh
yamllint:
name: Run yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Display yamllint version
run: yamllint --version
- name: yamllint
run: yamllint -c .trunk/configs/.yamllint.yaml .