mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
---
|
|
# yaml-language-server: https://json.schemastore.org/github-workflow.json
|
|
name: reviewdog
|
|
|
|
on: [push]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
linters:
|
|
name: Linters
|
|
|
|
runs-on: self-hosted
|
|
|
|
permissions: write-all
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: GitHub Actions
|
|
uses: reviewdog/action-actionlint@v1
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
reporter: github-pr-review
|
|
|
|
- name: detect-secrets
|
|
uses: reviewdog/action-detect-secrets@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
reporter: github-pr-review
|
|
|
|
- name: markdownlint
|
|
uses: reviewdog/action-markdownlint@v0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
reporter: github-pr-review
|
|
|
|
- name: shfmt
|
|
uses: reviewdog/action-shfmt@v1
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
shfmt_flags: |
|
|
--find
|
|
--list
|
|
--write
|
|
--diff
|
|
--simplify
|
|
--language-dialect bash
|
|
--indent 2
|
|
--binary-next-line
|
|
--case-indent
|
|
--space-redirects
|
|
--func-next-line
|