name: Shellcheck

on:
  push:
    branches:
      - main
    paths:
      - '**.sh'
  pull_request:
    branches:
      - main
    paths:
      - '**.sh'

jobs:
  shellcheck:
    name: Shellcheck
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Run ShellCheck
      uses: ludeeus/action-shellcheck@master
