You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
582 B
YAML
17 lines
582 B
YAML
5 years ago
|
name: shellcheck
|
||
5 years ago
|
on: [push, pull_request]
|
||
5 years ago
|
|
||
|
jobs:
|
||
|
formatCheck:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Install Shellcheck
|
||
|
run: sudo apt-get install -y shellcheck
|
||
|
- name: DoShellcheck
|
||
|
run: shellcheck -V && shellcheck -e SC2181 **/*.sh && echo "shellcheck OK"
|
||
|
- name: Install shfmt
|
||
5 years ago
|
run: curl -sSL https://github.com/mvdan/sh/releases/download/v3.1.2/shfmt_v3.1.2_linux_amd64 -o ~/shfmt && chmod +x ~/shfmt
|
||
5 years ago
|
- name: shfmt
|
||
|
run: ~/shfmt -l -w -i 2 . ; git diff --exit-code && echo "shfmt OK"
|