branch: elpa/autothemer commit 04a4fad366a2ed15df00f3b5a7b36615181ace33 Author: Jason Milkins <jason...@gmail.com> Commit: Jason Milkins <jason...@gmail.com>
Make sure package dash is available. (Should be using Cask) --- .github/workflows/test.yml | 1 + bin/setup | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0227237ab0..8bcfd0aadb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,4 +33,5 @@ jobs: - name: Test run: | + bin/setup bin/test diff --git a/bin/setup b/bin/setup new file mode 100644 index 0000000000..7f5fec1a76 --- /dev/null +++ b/bin/setup @@ -0,0 +1,21 @@ +#!/bin/sh -e +# For CI / Github Actions + +EMACS="${EMACS:=emacs}" + +NEEDED_PACKAGES="dash" + +INIT_PACKAGE_EL="(progn \ + (require 'package) \ + (push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \ + (package-initialize) \ + (unless package-archive-contents \ + (package-refresh-contents)) \ + (dolist (pkg '(${NEEDED_PACKAGES})) \ + (unless (package-installed-p pkg) \ + (package-install pkg))))" + +# Refresh package archives, because the test suite needs to see at least +# package-lint and cl-lib. +"$EMACS" -batch \ + --eval "$INIT_PACKAGE_EL"