Skip to content

Merge pull request #8 from dmerrick/dam/modernize-latex #24

Merge pull request #8 from dmerrick/dam/modernize-latex

Merge pull request #8 from dmerrick/dam/modernize-latex #24

Workflow file for this run

name: Linting
on:
pull_request:
push:
branches:
- master
permissions:
contents: read
env:
WORDLIST: .github/spellcheck/allow.txt
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install lint tools
run: |
sudo apt-get update
sudo apt-get install -y aspell aspell-en chktex
- name: Spell check (aspell)
run: |
mkdir -p "$(dirname "$WORDLIST")"
touch "$WORDLIST"
aspell --mode=tex --lang=en_US --personal="$(pwd)/$WORDLIST" --list < resume.tex \
| sort -u | tee misspellings.txt
if [ -s misspellings.txt ]; then
echo "Misspellings found:"
cat misspellings.txt
exit 1
fi
- name: LaTeX lint (chktex)
run: chktex -q -n1 -n3 -n8 -n13 -n38 resume.tex