Skip to content

Commit

Permalink
Add shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Apr 11, 2021
1 parent 9aee18f commit 6ec911f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: shellcheck
on: [push, pull_request]

jobs:
shellcheck:
name: Shell Check
runs-on: ubuntu-latest
container:
image: opensuse/leap:15.3
steps:
- uses: actions/checkout@v1.2.0
- name: Update packages
run: zypper --non-interactive --gpg-auto-import-keys ref
- name: Install openSUSE dependencies
run: zypper --non-interactive --gpg-auto-import-keys install ShellCheck

- name: shellcheck
run: |
set -x
for i in $(find . -type f -name '*.sh'); do
shellcheck -s bash --exclude=SC2181 --exclude=SC1090 --exclude=SC2006 --exclude=SC2086 $i
done
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:shell: Unix Shell Scripts
================================
:shell: Unix Shell Scripts [![Build Status](https://github.com/jonaski/shellscripts/workflows/shellcheck/badge.svg)](https://github.com/jonaski/shellscripts/actions)
==========================

These are some of the various unix shell scripts I've made over the years.

Expand Down

0 comments on commit 6ec911f

Please sign in to comment.