Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Add github action to run shellcheck on pull request #12

Merged
merged 1 commit into from
Jun 8, 2023
Merged
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
20 changes: 20 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Shellcheck
on: pull_request

jobs:
run_shellcheck:
runs-on: ubuntu-latest

container:
image: docker.io/library/alpine:latest
options: --privileged

steps:
- name: Update the container
run: apk update && apk upgrade

- name: Install shellcheck
run: apk add shellcheck

- name: Run shellcheck
run: find . -name '*.sh' -exec shellcheck --color=always {} +