feat: check indentation in CI #164
Workflow file for this run
This file contains 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: Test with Emacs | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Install Emacs | |
run: sudo apt install -y emacs | |
- name: Install Just | |
uses: extractions/setup-just@v1 | |
with: | |
just-version: 1.13 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run tests | |
run: just test | |
- name: Check indentation | |
run: emacs --script scripts/indent-lisp-files.el | |
- name: Compare changes | |
run: git diff --exit-code |