mirror of https://github.com/k3s-io/k3s
Derek Nola
2 years ago
committed by
GitHub
7 changed files with 28 additions and 16 deletions
@ -0,0 +1,24 @@
|
||||
name: Codespell |
||||
on: |
||||
push: |
||||
pull_request: |
||||
branches: |
||||
- master |
||||
workflow_dispatch: {} |
||||
jobs: |
||||
spellcheck: |
||||
name: Spell Check |
||||
runs-on: ubuntu-20.04 |
||||
steps: |
||||
- name: Checkout |
||||
uses: actions/checkout@v3 |
||||
with: |
||||
fetch-depth: 1 |
||||
- name: Set up Python 🐍 |
||||
uses: actions/setup-python@v4 |
||||
- name: Install codespell |
||||
run: | |
||||
python -m pip install --upgrade pip |
||||
pip install codespell |
||||
- name: Check spelling |
||||
run: codespell --skip=.git,./scripts,MAINTAINERS,LICENSE,go.mod,go.sum --check-filenames --ignore-words-list=ba |
@ -1,11 +0,0 @@
|
||||
#!/bin/bash |
||||
|
||||
# Ignore vendor folder and check file names as well |
||||
# Note: ignore "ba" in https://github.com/k3s-io/k3s/blob/4317a91/scripts/provision/vagrant#L54 |
||||
codespell --skip=.git,./vendor,MAINTAINERS,go.mod,go.sum --check-filenames --ignore-words-list=ba |
||||
|
||||
code=$? |
||||
if [ $code -ne 0 ]; then |
||||
echo "Error: codespell found one or more problems!" |
||||
exit $code |
||||
fi |
Loading…
Reference in new issue