Skip to content

Commit

Permalink
lint: Added reviewdog linters
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kosiewski committed Dec 20, 2024
1 parent 3e094c5 commit 2d4cd8a
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions .github/workflows/reviewdog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Reviewdog

on:
pull_request:
branches:
- main
paths:
- ".github/workflows/reviewdog.yaml"
- "**/Dockerfile"
- "**/Dockerfile.*"
- "**/*.sh"
- "**/*.md"

permissions:
contents: read
pull-requests: write

jobs:
hadolint:
name: runner / hadolinter
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Run Hadolint with Reviewdog
uses: reviewdog/action-hadolint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
exclude: |
./vendor/*
markdownlint:
name: runner / markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: markdownlint
uses: reviewdog/action-markdownlint@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
markdownlint_flags: --ignore vendor .

misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Run Misspell with Reviewdog
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
exclude: |
./.git/*
./.cache/*
./vendor/*
actionlint:
name: runner / actionlint
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Run Actionlint with Reviewdog
uses: reviewdog/action-actionlint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
fail_on_error: true

shellcheck:
name: runner / shellcheck
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
fail_on_error: true
exclude: |
*/.git/*
./vendor/*

0 comments on commit 2d4cd8a

Please sign in to comment.