Skip to content
Closed
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
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install ShellCheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck

- name: Run ShellCheck on all shell scripts
run: |
# Find all *.sh files tracked by git
SH_FILES=$(git ls-files '*.sh')
if [ -z "$SH_FILES" ]; then
echo "No shell script files found."
exit 0
fi
echo "Running shellcheck on the following files:"
echo "$SH_FILES"
shellcheck $SH_FILES

- name: Validate Vim configuration syntax
run: |
# Run Vim in headless mode to load syntax highlighting and exit.
# Any syntax errors in Vim configuration files will cause a non‑zero exit.
vim --cmd 'set nomore' -c 'syntax on' -c 'quit' || exit 1
Loading