Merge pull request #8 from dmerrick/dam/modernize-latex #24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |