Add shellcheck and misspell

This commit is contained in:
Daniel Hansson 2023-10-02 17:10:49 +02:00 committed by GitHub
parent 30a9f19e82
commit dcbd9ab61f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

33
.github/workflows/reviewdog.yml vendored Normal file
View File

@ -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"