aboutsummaryrefslogtreecommitdiffstats
path: root/.gitea
diff options
context:
space:
mode:
authorAstounds <kirito@disroot.org>2026-02-27 23:34:18 -0500
committerAstounds <kirito@disroot.org>2026-02-27 23:34:18 -0500
commitfa9b2a92c21a8f7e7fda2d7902a9d6da96a962df (patch)
tree0019f3e660208ce06332e20a160e4df9da16987a /.gitea
parentf19be261059b268f01685163985072889278bca0 (diff)
downloademacs-personal-fa9b2a92c21a8f7e7fda2d7902a9d6da96a962df.tar.lz
emacs-personal-fa9b2a92c21a8f7e7fda2d7902a9d6da96a962df.tar.xz
emacs-personal-fa9b2a92c21a8f7e7fda2d7902a9d6da96a962df.zip
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
Diffstat (limited to '.gitea')
-rw-r--r--.gitea/workflows/git-sync.yaml36
1 files changed, 34 insertions, 2 deletions
diff --git a/.gitea/workflows/git-sync.yaml b/.gitea/workflows/git-sync.yaml
index 7ad4e72..561f3b4 100644
--- a/.gitea/workflows/git-sync.yaml
+++ b/.gitea/workflows/git-sync.yaml
@@ -3,13 +3,45 @@ name: git-sync-with-mirror
on:
push:
branches: [ master ]
+ pull_request:
+ branches: [ master ]
workflow_dispatch:
jobs:
+ 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 }}