Skip to content

Commit

Permalink
Add linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Nov 27, 2024
1 parent 266bcbd commit 077d48e
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: CI

Check failure on line 1 in .github/workflows/lint.yml

View workflow job for this annotation

GitHub Actions / yamllint

[yamllint] .github/workflows/lint.yml#L1

[warning] missing document start "---" (document-start)
Raw output
./.github/workflows/lint.yml:1:1: [warning] missing document start "---" (document-start)

on: # yamllint disable-line rule:truthy

Check failure on line 3 in .github/workflows/lint.yml

View workflow job for this annotation

GitHub Actions / yamllint

[yamllint] .github/workflows/lint.yml#L3

[warning] too few spaces before comment (comments)
Raw output
./.github/workflows/lint.yml:3:5: [warning] too few spaces before comment (comments)
pull_request:
types: [opened, synchronize, reopened]

jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint
uses: reviewdog/action-shellcheck@v1
with:
reporter: github-pr-check
filter_mode: nofilter
reviewdog_flags: '-fail-level=any'

markdownlint:
name: MarkdownLint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint
uses: reviewdog/action-markdownlint@v0
with:
reporter: github-pr-check
filter_mode: nofilter
reviewdog_flags: '-fail-level=any'

yamllint:
name: YamlLint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint
uses: reviewdog/action-yamllint@v1
with:
reporter: github-pr-check
filter_mode: nofilter
reviewdog_flags: '-fail-level=any'

actionlint:
name: ActionLint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint
uses: reviewdog/action-actionlint@v1
with:
reporter: github-pr-check
filter_mode: nofilter
reviewdog_flags: '-fail-level=any'

0 comments on commit 077d48e

Please sign in to comment.