Skip to content

[CTOR-179] Include orthograph/syntax checks in CI for MC documentation #28

[CTOR-179] Include orthograph/syntax checks in CI for MC documentation

[CTOR-179] Include orthograph/syntax checks in CI for MC documentation #28

Workflow file for this run

name: spell-checker
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/spellchecker.yml'
- 'src/**'
- '.github/scripts/pod_spell_check.t'
jobs:
pod-spell-check:
if: ${{ !contains(github.event.issue.labels.*.name, 'do-not-spell-check') }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
list-files: shell
filters: |
plugins:
- added|modified: src/**
- name: Install CPAN Libraries
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.34'
install-modules-with: cpm
install-modules: Test::More Test::Spelling
- name: Install librairies
continue-on-error: true
run: |
sudo apt-get update
sudo apt-get install -y hunspell
shell: bash
- name: Run spell check
id: run_check
run: |
set +e
for f in ${{ steps.filter.outputs.plugins_files }}; do
echo "perl .github/scripts/pod_spell_check.t $f"
output=$(perl .github/scripts/pod_spell_check.t $f)
done
shell: bash