From f1150d5f87867a8033e0425d2b65abdbbcd34dac Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Wed, 1 Apr 2020 18:58:08 -0700 Subject: [PATCH] github: Add Actions workflow To ensure that any contributions are consistent and proper, add a GitHub Action that runs shellcheck on any scripts. For an example of how an error manifests and gets reported: https://github.com/nathanchance/boot-utils/actions/runs/68702038 Signed-off-by: Nathan Chancellor --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..69bd789 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,10 @@ +# Run shellcheck on all shell files in this repository +name: shellcheck +on: [push, pull_request] +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: shellcheck + uses: bewuethr/shellcheck-action@v1