Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Add github actions for shell check #597

Merged
merged 1 commit into from
Jul 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/check_shell_script.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check Shell Script Syntax

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Get Diff Action
uses: technote-space/[email protected]
with:
SUFFIX_FILTER: .sh
- name: Install ShellCheck
run: |
sudo apt-get install shellcheck
if: env.GIT_DIFF
- name: Lint with ShellCheck
run: |
shellcheck --shell=bash -x ${{ env.GIT_DIFF }}
if: env.GIT_DIFF