Skip to content
Merged
Show file tree
Hide file tree
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
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
steps:
- uses: actions/checkout@v4
- name: Check bash syntax
run: |

Check failure on line 27 in .github/workflows/lint.yml

View workflow job for this annotation

GitHub Actions / Lint GitHub Actions

shellcheck reported issue in this script: SC2044:warning:2:10: For loops over find output are fragile. Use find -exec or a while read loop
errors=0
for f in $(find . -name '*.sh' -type f); do
if ! bash -n "$f"; then
Expand All @@ -47,3 +47,33 @@
with:
check_filenames: true
skip: .git,noVNC

shfmt:
name: Shell Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install shfmt
run: |
SHFMT_VERSION="v3.10.0"
curl -Lo shfmt "https://github.com/mvdan/sh/releases/download/${SHFMT_VERSION}/shfmt_${SHFMT_VERSION}_linux_amd64"
chmod +x shfmt
sudo mv shfmt /usr/local/bin/
- name: Check formatting
run: shfmt -d -i 4 -ci .

actionlint:
name: Lint GitHub Actions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: raven-actions/actionlint@v2

markdownlint:
name: Markdown Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: "**/*.md"
2 changes: 2 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config:
MD013: false
Loading
Loading