-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 1.14 KB
/
Copy pathlint.yml
File metadata and controls
40 lines (36 loc) · 1.14 KB
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
# yamllint disable-line rule:document-start
name: Lint
# yamllint disable-line rule:truthy
on: push
jobs:
shell:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Shellcheck
uses: azohra/shell-linter@latest
with:
# zsh completion functions (shell/completions) use zsh-only syntax
# ShellCheck cannot parse; tests/ holds .bats files (non-bash @test
# syntax) and third-party BATS submodules. ShellCheck skips both.
exclude-paths: "shell/completions,tests"
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Run BATS tests
run: ./bin/bats/bin/bats tests/*.bats
lua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Stylua
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
# yamllint disable-line rule:line-length
args: --quote-style AutoPreferSingle --indent-type Spaces --indent-width 2 --check .