From f6cb4c265c8ff7dfac6932662f6486b5358be9a5 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Tue, 22 Aug 2023 17:50:26 +0200 Subject: [PATCH] Add shellcheck to CI This script is composed of many shell scripts and shellcheck can be used to improve their quality. The workflow is copied from forklift. --- .github/workflows/shellcheck.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/shellcheck.yml diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..535ff1e --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,25 @@ +--- +name: Differential ShellCheck + +on: + pull_request: + branches: + - master + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Repository checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }}