Skip to content

Commit

Permalink
Add github ci for linux/windows runners
Browse files Browse the repository at this point in the history
  • Loading branch information
regob committed Sep 4, 2024
1 parent 52103ef commit 3b73ba6
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Emacs test CI"
on:
push:
paths-ignore:
- '**.md'
- '**.org'
jobs:
# Linux ci adapted from https://github.com/purcell/emacs.d
startup_linux:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
emacs_version:
- 29.3
experimental: [false]
# include:
# - emacs_version: snapshot
# experimental: true
steps:
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: actions/checkout@v4
- name: Test directory
run: pwd
- name: Check startup
run: ./test/test_startup.sh
# windows CI is experimental and uses the Emacs version packaged
# by chocolately: https://community.chocolatey.org/packages/Emacs
startup_windows:
runs-on: windows-latest
steps:
- name: Disable choco progress
run: choco feature disable -n=showDownloadProgress
- name: Install emacs
run: choco install emacs
- name: Check emacs version
run: emacs --version
- uses: actions/checkout@v4
- name: Check startup
run: bash ./test/test_startup.sh
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ custom.el
# keep some necessary files
README.org
LICENSE

# github ci
!.github
!.github/**/*

0 comments on commit 3b73ba6

Please sign in to comment.