dotfiles/.github/workflows/lint.yml

35 lines
721 B
YAML
Executable File

# This is a basic workflow that is manually triggered
name: Lint CI
on:
push:
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
scripts:
- 'bin/**'
- 'bootstrap'
- bashrc/**
- zshrc/**
- tools/**
manual:
- .github/workflows/lint.yml
- name: ShellCheck
if: steps.changes.outputs.scripts == 'true'
uses: ludeeus/action-shellcheck@1.1.0
with:
check_together: 'yes'
severity: error
format: tty
env:
SHELLCHECK_OPTS: -s bash