Skip to content

Commit

Permalink
ci: Add a simple GH action to run spelling tools on our code
Browse files Browse the repository at this point in the history
This uses codespell and spellintian.
  • Loading branch information
vojtechtrefny committed Sep 3, 2024
1 parent f9eb41d commit ecd675f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check spelling using codespell and spellintian

on:
pull_request:
branches:
- master

jobs:
build:
name: spelling
runs-on: ubuntu-24.04
env:
CI_CONTAINER: libblockdev-ci-spelling
steps:
- name: Checkout libblockdev repository
uses: actions/checkout@v4
with:
path: libblockdev

- name: Install codespell and lintian
run: |
sudo apt -qq update
sudo apt -y -qq install codespell lintian
- name: Get the storaged-project/ci repository
uses: actions/checkout@v4
with:
repository: storaged-project/ci
path: ci

- name: Run the checks
run: |
python3 ../ci/run_spell_checks -p libblockdev -i gir
working-directory: ./libblockdev

0 comments on commit ecd675f

Please sign in to comment.