diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..6869a65 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,16 @@ +name: shellcheck +on: [push, pull_request] + +jobs: + shellcheck: + name: shellcheck + runs-on: ubuntu-latest + steps: + - name: ⤵️ Check out repository + uses: actions/checkout@v3 + + - name: 🦪 Run shellcheck + uses: sudo-bot/action-shellcheck@latest + with: + # https://github.com/koalaman/shellcheck#how-to-use + cli-args: "*.sh scripts/*.sh" \ No newline at end of file diff --git a/.github/workflows/yaml-lint.yml b/.github/workflows/yaml-lint.yml index 9809764..45b6537 100644 --- a/.github/workflows/yaml-lint.yml +++ b/.github/workflows/yaml-lint.yml @@ -1,4 +1,4 @@ -name: Lint +name: yamllint on: [push, pull_request] jobs: diff --git a/README.md b/README.md index 0383508..6e613c2 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ A docker-compose based samba server compatible with MacOS's TimeMachine. Quickly deployable on Raspberry Pi. -![lint](https://github.com/cakeholeDC/timemachine/actions/workflows/yaml-lint.yml/badge.svg) +![yaml-lint](https://github.com/cakeholeDC/timemachine/actions/workflows/yaml-lint.yml/badge.svg) +![shellcheck](https://github.com/cakeholeDC/timemachine/actions/workflows/shellcheck.yml/badge.svg) ## Pre Reqs 👶 🛠 - [docker](https://docs.docker.com/desktop/install/linux-install/)