-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (32 loc) · 948 Bytes
/
ci.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
name: 'Kubech CI'
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
sh-lint:
name: Lint shell files (shellcheck)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
additional_files: 'kubech*'
env:
SHELLCHECK_OPTS: -e SC1091 -e SC2148 -e SC2207
sh-fmt:
name: Fmt shell files (shfmt)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Run the sh-checker
uses: luizm/action-sh-checker@76ab0b22e1f194e4a582edc7969df6485c4e9246 # v0.7.0
env:
SHFMT_OPTS: -sr -i 4 -d -ci
with:
# Disable shellcheck because there no option in sh-check to read sh files without extension.
sh_checker_shellcheck_disable: true