Skip to content

Commit

Permalink
CI: add spelling checker step
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloegea committed Oct 18, 2023
1 parent 536bed3 commit c4e0280
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check-spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check Documentation Spelling

on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]

jobs:
check-spelling:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2

- name: Install build depends
run: |
echo "APT::Get::Always-Include-Phased-Updates \"true\";" | sudo tee /etc/apt/apt.conf.d/90phased-updates
sudo sed -i '/deb-src/s/^# //' /etc/apt/sources.list
sudo apt update
sudo apt build-dep netplan.io
- name: Run spelling checker
continue-on-error: true
run: |
make -C doc install
make -C doc spelling
- name: Check results
run: |
SPELLING=$(find doc/_build/spelling/ -name '*.spelling')
echo ${SPELLING}
[ -z "${SPELLING}" ] && exit 0 || { cat ${SPELLING} ; exit 1; }

0 comments on commit c4e0280

Please sign in to comment.