Skip to content

Commit

Permalink
chore: check colour definitions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbx committed Aug 5, 2024
1 parent 8d083eb commit d5d8e0b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test .el files
name: Test .el files / Check color definitions

on:
push:
Expand All @@ -17,6 +17,11 @@ jobs:
wget http://mirrors.kernel.org/ubuntu/pool/main/e/emacs25/emacs25-nox_25.2+1-6_amd64.deb http://mirrors.kernel.org/ubuntu/pool/main/e/emacs25/emacs25-bin-common_25.2+1-6_amd64.deb http://mirrors.kernel.org/ubuntu/pool/main/e/emacs25/emacs25-common_25.2+1-6_all.deb http://mirrors.kernel.org/ubuntu/pool/main/e/emacsen-common/emacsen-common_2.0.8_all.deb http://mirrors.kernel.org/ubuntu/pool/universe/c/compat-el/elpa-compat_29.1.4.4+dfsg-1_all.deb
sudo apt-get install --allow-downgrades ./emacs25-nox_25.2+1-6_amd64.deb ./emacs25-bin-common_25.2+1-6_amd64.deb ./emacs25-common_25.2+1-6_all.deb ./emacsen-common_2.0.8_all.deb ./elpa-compat_29.1.4.4+dfsg-1_all.deb
- name: Install Whiskers
run: |
sudo curl -o /usr/local/bin/whiskers https://github.com/catppuccin/whiskers/releases/latest/download/whiskers-x86_64-unknown-linux-gnu
sudo chmod +x /usr/local/bin/whiskers
- name: Install Just
uses: extractions/setup-just@v1
with:
Expand All @@ -30,5 +35,11 @@ jobs:
- name: Check indentation
run: emacs --script scripts/indent-lisp-files.el

- name: Generate catppuccin-definitions.el
run: whiskers emacs.tera

- name: Format catppuccin-definitions.el
run: emacs --script scripts/format-definitions.el -f format-definitions

- name: Compare changes
run: git diff --exit-code

0 comments on commit d5d8e0b

Please sign in to comment.