From af97a14b701e3111baca05c1b317374062f64c7b Mon Sep 17 00:00:00 2001 From: Dana Merrick Date: Sun, 21 Dec 2025 11:32:59 -0600 Subject: [PATCH 1/7] Add linting workflow --- .github/spellcheck/allow.txt | 1 + .github/workflows/linting.yml | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/spellcheck/allow.txt create mode 100644 .github/workflows/linting.yml diff --git a/.github/spellcheck/allow.txt b/.github/spellcheck/allow.txt new file mode 100644 index 0000000..c01fe56 --- /dev/null +++ b/.github/spellcheck/allow.txt @@ -0,0 +1 @@ +LaTeX diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000..5f62d7c --- /dev/null +++ b/.github/workflows/linting.yml @@ -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 From 2981099bde5b439948960c84b5a3b7d7a4125d8a Mon Sep 17 00:00:00 2001 From: Dana Merrick Date: Sun, 21 Dec 2025 11:43:14 -0600 Subject: [PATCH 2/7] run here --- .github/workflows/linting.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 5f62d7c..c709040 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -5,6 +5,7 @@ on: push: branches: - master + - dam/add-linting permissions: contents: read From ce37ab04e6922c8917196b3d4758a3a68f37d25a Mon Sep 17 00:00:00 2001 From: Dana Merrick Date: Sun, 21 Dec 2025 11:45:33 -0600 Subject: [PATCH 3/7] run here for now --- .github/workflows/linting.yml | 1 - .github/workflows/release.yml | 56 +++++++++++++++++++++++++++-------- 2 files changed, 44 insertions(+), 13 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index c709040..5f62d7c 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -5,7 +5,6 @@ on: push: branches: - master - - dam/add-linting permissions: contents: read diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffa7d79..6ed1322 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,18 +4,50 @@ on: push: branches: - master +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# with: +# fetch-depth: '0' +# - uses: xu-cheng/latex-action@v3 +# with: +# root_file: | +# resume.tex +# - uses: actions/upload-artifact@v4 +# with: +# name: resume +# path: resume.pdf +permissions: + contents: read + +env: + WORDLIST: .github/spellcheck/allow.txt + jobs: - build: + checks: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - fetch-depth: '0' - - uses: xu-cheng/latex-action@v3 - with: - root_file: | - resume.tex - - uses: actions/upload-artifact@v4 - with: - name: resume - path: resume.pdf + - 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 From 4f9235d18ba80653000418057b905c5cdebeeaad Mon Sep 17 00:00:00 2001 From: Dana Merrick Date: Sun, 21 Dec 2025 11:46:18 -0600 Subject: [PATCH 4/7] mmk --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ed1322..3db7b6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - dam/adding-linting # jobs: # build: # runs-on: ubuntu-latest From 387f1c0112d01ff935e00fac4ac292367cea41bb Mon Sep 17 00:00:00 2001 From: Dana Merrick Date: Sun, 21 Dec 2025 11:47:24 -0600 Subject: [PATCH 5/7] bleh --- .github/workflows/release.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3db7b6b..6ac27f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,21 +5,7 @@ on: branches: - master - dam/adding-linting -# jobs: -# build: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# with: -# fetch-depth: '0' -# - uses: xu-cheng/latex-action@v3 -# with: -# root_file: | -# resume.tex -# - uses: actions/upload-artifact@v4 -# with: -# name: resume -# path: resume.pdf + permissions: contents: read @@ -27,6 +13,20 @@ env: WORDLIST: .github/spellcheck/allow.txt jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: '0' + - uses: xu-cheng/latex-action@v3 + with: + root_file: | + resume.tex + - uses: actions/upload-artifact@v4 + with: + name: resume + path: resume.pdf checks: runs-on: ubuntu-latest steps: @@ -52,3 +52,4 @@ jobs: sudo apt-get update sudo apt-get install -y chktex chktex -q -n1 -n3 -n8 resume.tex + From 4f99954aa631c138d8a5cecdf4bd9f0faeac64ee Mon Sep 17 00:00:00 2001 From: Dana Merrick Date: Sun, 21 Dec 2025 11:47:56 -0600 Subject: [PATCH 6/7] bleh2 --- .github/workflows/release.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ac27f1..e6ddcbd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,20 +13,21 @@ env: WORDLIST: .github/spellcheck/allow.txt jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: '0' - - uses: xu-cheng/latex-action@v3 - with: - root_file: | - resume.tex - - uses: actions/upload-artifact@v4 - with: - name: resume - path: resume.pdf + # build: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v2 + # with: + # fetch-depth: '0' + # - uses: xu-cheng/latex-action@v3 + # with: + # root_file: | + # resume.tex + # - uses: actions/upload-artifact@v4 + # with: + # name: resume + # path: resume.pdf + checks: runs-on: ubuntu-latest steps: From 69c7ed605d93e1f97345d3784a9cdd2dba67e551 Mon Sep 17 00:00:00 2001 From: Dana Merrick Date: Sun, 21 Dec 2025 11:48:26 -0600 Subject: [PATCH 7/7] revert --- .github/workflows/release.yml | 59 +++++++---------------------------- 1 file changed, 12 insertions(+), 47 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e6ddcbd..ffa7d79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,53 +4,18 @@ on: push: branches: - master - - dam/adding-linting - -permissions: - contents: read - -env: - WORDLIST: .github/spellcheck/allow.txt - jobs: - # build: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # with: - # fetch-depth: '0' - # - uses: xu-cheng/latex-action@v3 - # with: - # root_file: | - # resume.tex - # - uses: actions/upload-artifact@v4 - # with: - # name: resume - # path: resume.pdf - - checks: + build: 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 - + - uses: actions/checkout@v2 + with: + fetch-depth: '0' + - uses: xu-cheng/latex-action@v3 + with: + root_file: | + resume.tex + - uses: actions/upload-artifact@v4 + with: + name: resume + path: resume.pdf