From dcbd9ab61f56bddc3e4c109d2da919883e98fef0 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Mon, 2 Oct 2023 17:10:49 +0200 Subject: [PATCH] Add shellcheck and misspell --- .github/workflows/reviewdog.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/reviewdog.yml diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml new file mode 100644 index 0000000..a58bdd0 --- /dev/null +++ b/.github/workflows/reviewdog.yml @@ -0,0 +1,33 @@ +on: + pull_request: + push: + branches-ignore: + - 'autocommit' + +name: 'reviewdog' + +jobs: + shellcheck: + name: Shellcheck testing + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: shellcheck + uses: reviewdog/action-shellcheck@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + path: "." # Optional. + pattern: "*.sh" # Optional. + exclude: "./.git/*" # Optional. + misspell: + name: Check spelling + runs-on: ubuntu-latest + steps: + - name: spelling or typos + uses: actions/checkout@v4 + - name: misspell + uses: reviewdog/action-misspell@v1 + with: + github_token: ${{ secrets.github_token }} + locale: "US"