GitHub action to execute a lint check of all shell scripts using ShellCheck.
.github/workflows/code-linting.yml :
---
name: "Code linting"
on: [push, pull_request, workflow_dispatch]
jobs:
shellchecker:
name: "ShellChecker"
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v2
- name: "ShellChecker"
uses: a5k-actions/shellchecker@main| parameter | description | required | default |
|---|---|---|---|
| shellcheck-version | Version of ShellCheck to use. Values: [stable, latest, v0.7.2, ...] | false |
stable |
| severity | Minimum severity of issues to display. Values: [style, info, warning, error] | false |
style |
| enable-all-opt-checks | Enable all optional checks. Values: [true, false] | false |
false |
| ignore-files | List of files to ignore, the separator is: | false |
| parameter | description |
|---|---|
| NumFilesWthIssues | Number of files with issues |
| ListFilesWithIssues | A list of files with issues |
This action is an composite action.