Skip to content

refactor: generate colour definitions with whiskers #3

refactor: generate colour definitions with whiskers

refactor: generate colour definitions with whiskers #3

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: Download Emacs25 package
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
- name: Install Emacs
run: 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
- 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
definitions:
runs-on: ubuntu-latest
steps:
- 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 git
run: sudo apt install git
- 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 with master
run: git diff --exit-code