Skip to content

lint.yml: actions/checkout を v4 (Node.js 20) → v6 (Node.js 24) に更新 #2

lint.yml: actions/checkout を v4 (Node.js 20) → v6 (Node.js 24) に更新

lint.yml: actions/checkout を v4 (Node.js 20) → v6 (Node.js 24) に更新 #2

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install shellcheck
run: sudo apt-get install -y shellcheck
- name: Run shellcheck on setup.sh
run: shellcheck --severity=warning setup.sh
zsh-syntax:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install zsh
run: sudo apt-get install -y zsh
- name: Check zsh syntax
run: |
errors=0
for f in zsh/zshenv zsh/zprofile zsh/zshrc zsh/**/*.zsh; do
if [ -f "$f" ]; then
if ! zsh -n "$f" 2>&1; then
errors=$((errors + 1))
fi
fi
done
exit $errors