From 1f064a7704a55b16c51a9e0ec1cec412ee700c12 Mon Sep 17 00:00:00 2001 From: Aaron Hurt Date: Sat, 24 Aug 2024 11:55:10 -0500 Subject: [PATCH] add status checks --- .github/workflows/status-checks.yaml | 74 ++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .github/workflows/status-checks.yaml diff --git a/.github/workflows/status-checks.yaml b/.github/workflows/status-checks.yaml new file mode 100644 index 0000000..a53e36c --- /dev/null +++ b/.github/workflows/status-checks.yaml @@ -0,0 +1,74 @@ +name: status checks +on: + push: + branches: + - main + - master + pull_request: + +permissions: + contents: read + pull-requests: read + +jobs: + misspell: + name: runner / misspell + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: reviewdog/action-misspell@v1 + with: + level: info + reporter: github-check + filter_mode: nofilter + locale: "US" + + typos: + name: runner / typos + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: reviewdog/actions-typos@v1 + with: + level: info + reporter: github-check + filter_mode: nofilter + + markdownlint: + name: runner / markdownlint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: reviewdog/action-markdownlint@v0 + with: + level: info + reporter: github-check + filter_mode: nofilter + + shfmt: + name: runner / shfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: reviewdog/action-shfmt@v1 + with: + level: info + reporter: github-check + filter_mode: nofilter + fail_on_error: true + shfmt_flags: '-ln bash -ci -sr -i 2' + + shellcheck: + name: runner / shellcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: shellcheck + uses: reviewdog/action-shellcheck@v1 + with: + level: info + reporter: github-check + filter_mode: nofilter + fail_on_error: true + exclude: | + "./.git/*"