Skip to content

refactor: generate colour definitions with whiskers #168

refactor: generate colour definitions with whiskers

refactor: generate colour definitions with whiskers #168

Workflow file for this run

name: Test .el files / Check color definitions
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install Emacs 25
run: |
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:
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: 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