Skip to content

Commit 0e18205

Browse files
authored
Merge pull request #5 from dev-satoshi/ci/lint-actinos
chore: Shall ScriptのLintを追加
2 parents 540e083 + 00eaf04 commit 0e18205

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Shell Script Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
lint:
7+
name: Lint Shell scripts with ShellCheck
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Install ShellCheck
15+
run: sudo apt install -y shellcheck
16+
17+
- name: Run ShellCheck
18+
run: |
19+
find . -type f -name '*.sh' -not -path './.github/*' -print0 \
20+
| xargs -0 shellcheck

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
INSTALL_DIR="$HOME/dotfiles"

0 commit comments

Comments
 (0)