ci: add test workflow and fix code quality issues
- Add CI test job with Emacs batch load and byte-compile - Fix settings-file variable check in init.el - Fix extra parenthesis in init-neotree.el - Add missing projectile dependencies in neotree and web-mode - Fix add-hook usage in init-icons.el - Add hydra dependency in init-ivy.el - Standardize header style in init-company.el
This commit is contained in:
@@ -3,13 +3,45 @@ name: git-sync-with-mirror
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
git-sync:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Emacs
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y emacs-nox
|
||||
|
||||
- name: Setup environment
|
||||
run: |
|
||||
cp .env.example .env
|
||||
|
||||
- name: Load configuration
|
||||
run: |
|
||||
emacs --batch -l init.el
|
||||
|
||||
- name: Byte compile configuration
|
||||
run: |
|
||||
emacs --batch -f batch-byte-compile init.el modules/*.el
|
||||
|
||||
git-sync:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: git-sync
|
||||
env:
|
||||
git_sync_source_repo: git@git.fridu.us:heckyel/emacs-personal.git
|
||||
@@ -19,8 +51,8 @@ jobs:
|
||||
with:
|
||||
source_repo: git@git.fridu.us:heckyel/emacs-personal.git
|
||||
source_branch: "master"
|
||||
destination_repo: ssh://git@c.fridu.us/software/emacs-personal.git
|
||||
destination_branch: "master"
|
||||
destination_repo: ssh://git@c.fridu.us/software/emacs-personal.git
|
||||
source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }}
|
||||
destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}
|
||||
|
||||
@@ -33,7 +65,7 @@ jobs:
|
||||
with:
|
||||
source_repo: git@git.fridu.us:heckyel/emacs-personal.git
|
||||
source_branch: "master"
|
||||
destination_repo: git@git.sr.ht:~heckyel/emacs-personal
|
||||
destination_branch: "master"
|
||||
destination_repo: git@git.sr.ht:~heckyel/emacs-personal
|
||||
source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }}
|
||||
destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user