Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/spellcheck/allow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LaTeX
40 changes: 40 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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)
env:
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