From 19e2ba2d9b3d77b5b460597cf48d0c9b5989185f Mon Sep 17 00:00:00 2001 From: Aaron Robson <5177808+AaronRobson@users.noreply.github.com> Date: Sun, 21 Jun 2026 10:33:03 +0100 Subject: [PATCH] lint tex code with lacheck Locally with 'make check' and in CI. --- .github/workflows/check.yml | 6 +++++- Makefile | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e4b5851..524a993 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,8 +10,12 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + - name: Install dependencies + run: sudo apt-get install -y --no-install-recommends lacheck + - name: Lint + run: make check - name: Build - run: make + run: make build - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') diff --git a/Makefile b/Makefile index 19dbad6..7121e3f 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,17 @@ .DEFAULT_GOAL := all .PHONY: all -all: build +all: check build .PHONY: clean clean: rm -f *.log *.dvi *.synctex.gz *.pdf +.PHONY: check +check: *.tex +check: + lacheck *.tex + .PHONY: build build: *.pdf