aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorVladimir Panteleev <git@thecybershadow.net>2021-01-22 14:55:52 +0000
committerJonas Bernoulli <jonas@bernoul.li>2021-01-24 14:31:09 +0100
commit49a51d8d99ed0ad8760ce0256696b0b29e38a44d (patch)
tree6f16cff880d387c4b189da13c82f39ee9afe3bad /.github/workflows
parent255bf1677a10f1be31b6a70be7905404ffe67b7f (diff)
Replace Travis CI with GitHub Actions
npostavs/emacs-travis is replaced with the purcell/setup-emacs action. The host operating system version is bumped from Ubuntu Xenial (16.04) to Bionic (20.04), as 16.04's curl doesn't have --retry-connrefused, which is needed by purcell/setup-emacs. Notification settings are configured per-user in their GitHub settings: https://docs.github.com/en/github/managing-subscriptions-and-notifications-on-github/configuring-notifications#github-actions-notification-options
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..6fd3644
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,41 @@
+name: test
+on: [ push, pull_request ]
+env:
+ CURL: "curl -fsSkL --retry 9 --retry-delay 9"
+ GHRAW: "https://raw.githubusercontent.com"
+ BUILD_MAGIT_LIBGIT: "false"
+jobs:
+ test:
+ runs-on: ubuntu-20.04
+ strategy:
+ matrix:
+ emacs_version:
+ - 25.1
+ # 25.2 is identical to 25.3 except for a critical security bug in
+ # enriched text mode (see Emacs Bug#28350).
+ - 25.3
+ - 26.1 # Debian is on this version.
+ - 26.3
+ - 27.1
+ - snapshot
+ steps:
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs_version }}
+ - uses: actions/checkout@v2
+ - name: Install
+ run: |
+ $CURL -O ${GHRAW}/magnars/dash.el/master/dash.el
+ $CURL -O ${GHRAW}/magit/transient/master/lisp/transient.el
+ $CURL -O ${GHRAW}/magit/with-editor/master/with-editor.el
+ emacs -Q --batch -L . -f batch-byte-compile dash.el transient.el with-editor.el
+ emacs --version
+ git config --global user.name "A U Thor"
+ git config --global user.email a.u.thor@example.com
+ git tag 0
+ - name: Compile
+ run: |
+ make lisp DASH_DIR=$PWD
+ - name: Test
+ run: |
+ make test DASH_DIR=$PWD