-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from hardyoyo/add-reviewdog-workflow
Add reviewdog workflow for GitHub Actions
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: reviewdog | ||
on: [pull_request] | ||
jobs: | ||
# Use shellcheck to lint shell scripts | ||
shellcheck: | ||
name: runner / shellcheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: shellcheck | ||
uses: reviewdog/action-shellcheck@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
# Use misspell to correct spelling mistakes | ||
misspell: | ||
name: runner / misspell | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: misspell | ||
uses: reviewdog/action-misspell@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
locale: "US" | ||
# Use yamllint to lint yaml files | ||
yamllint: | ||
name: check / yamllint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: yamllint | ||
uses: reviewdog/action-yamllint@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-review | ||
fail_on_error: true | ||
yamllint_flags: '-d "{extends: default, rules: {truthy: disable}}" .' | ||
# Use dotenv-liknter to lint dotenv files | ||
dotenv-linter: | ||
name: runner / dotenv-linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run dotenv-linter | ||
uses: dontenv-linter/action-dotenv-linter@v2 | ||
with: | ||
reporter: github-pr-review # Default is github-pr-check | ||
dotenv_linter_flags: --skip UnorderedKey,LowercaseKey |