Tweaking linting #10
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: Spell check (aspell) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y aspell aspell-en | |
| mkdir -p "$(dirname "$WORDLIST")" | |
| touch "$WORDLIST" | |
| aspell --mode=tex --lang=en_US --personal="$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: | | |
| sudo apt-get update | |
| sudo apt-get install -y chktex | |
| chktex -q -n1 -n3 -n8 resume.tex |