Skip to content

Commit

Permalink
Update spell check actions
Browse files Browse the repository at this point in the history
  • Loading branch information
plettich committed Dec 6, 2024
1 parent a0e24fd commit cc7fa3e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
File renamed without changes.
29 changes: 29 additions & 0 deletions .github/workflows/rd_codespell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: reviewdog-codespell
on:
push:
branches:
- master
pull_request:

jobs:
reviewdog-github-check:
permissions:
checks: write
contents: read
pull-requests: write
name: reviewdog (github-check)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install codespell
run: |
python -m pip install -U codespell
- name: Setup reviewdog
uses: reviewdog/action-setup@v1

- name: Run reviewdog
run: |
codespell -q 3 -S ./privacyidea/static/contrib/*,./privacyidea/static/components/translation/*,./privacyidea/translations/*,./po/* . \
| reviewdog -efm="%f:%l: %m" -name="codespell" -reporter=github-pr-check -level=warning
18 changes: 18 additions & 0 deletions .github/workflows/rd_misspell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: reviewdog-misspell
on: [pull_request]
jobs:
reviewdog:
name: reviewdog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: misspell
uses: reviewdog/action-misspell@v1
with:
locale: "US"
exclude: |
./.git/*
./privacyidea/static/contrib/*
./privacyidea/static/components/translation/*
./privacyidea/translations/*
./po/*

0 comments on commit cc7fa3e

Please sign in to comment.