]> git.proxmox.com Git - mirror_acme.sh.git/blob - .github/workflows/shellcheck.yml
Merge branch 'dev' of https://github.com/jakelamotta/acme.sh into dev
[mirror_acme.sh.git] / .github / workflows / shellcheck.yml
1 name: Shellcheck
2 on:
3 push:
4 branches:
5 - '*'
6 paths:
7 - '**.sh'
8 - '**.yml'
9 pull_request:
10 branches:
11 - dev
12 paths:
13 - '**.sh'
14 - '**.yml'
15
16 jobs:
17 ShellCheck:
18 runs-on: ubuntu-latest
19 steps:
20 - uses: actions/checkout@v2
21 - name: Install Shellcheck
22 run: sudo apt-get install -y shellcheck
23 - name: DoShellcheck
24 run: shellcheck -V && shellcheck -e SC2181 **/*.sh && echo "shellcheck OK"
25
26 shfmt:
27 runs-on: ubuntu-latest
28 steps:
29 - uses: actions/checkout@v2
30 - name: Install shfmt
31 run: curl -sSL https://github.com/mvdan/sh/releases/download/v3.1.2/shfmt_v3.1.2_linux_amd64 -o ~/shfmt && chmod +x ~/shfmt
32 - name: shfmt
33 run: ~/shfmt -l -w -i 2 . ; git diff --exit-code && echo "shfmt OK"