branch: elpa/symbol-overlay commit dc9f5f1d4446b5d3af026c3960464aa808504fd5 Merge: c439b73a5f 7cef46c6c9 Author: Steve Purcell <st...@sanityinc.com> Commit: GitHub <nore...@github.com>
Merge pull request #87 from wolray/add-github-actions-ci Add basic CI with byte compilation and package-lint check --- .github/workflows/test.yml | 33 +++++++++++++++++++++++++++++++++ Makefile | 28 ++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..e95f8b7444 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: CI + +on: + pull_request: + push: + paths-ignore: + - '**.md' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + emacs_version: + - 24.3 + - 24.5 + - 25.1 + - 25.3 + - 26.1 + - 26.3 + - 27.1 + - 27.2 + - 28.1 + - 28.2 + - snapshot + steps: + - uses: purcell/setup-emacs@master + with: + version: ${{ matrix.emacs_version }} + + - uses: actions/checkout@v2 + - name: Run tests + run: make diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..9bb1cd306f --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +EMACS ?= emacs + +# A space-separated list of required package names +NEEDED_PACKAGES = package-lint seq + +INIT_PACKAGES="(progn \ + (require 'package) \ + (push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \ + (package-initialize) \ + (dolist (pkg '(${NEEDED_PACKAGES})) \ + (unless (package-installed-p pkg) \ + (unless (assoc pkg package-archive-contents) \ + (package-refresh-contents)) \ + (package-install pkg))) \ + )" + +all: compile package-lint clean-elc + +package-lint: + ${EMACS} -Q --eval ${INIT_PACKAGES} -batch -f package-lint-batch-and-exit symbol-overlay.el + +compile: clean-elc + ${EMACS} -Q --eval ${INIT_PACKAGES} -L . -batch -f batch-byte-compile *.el + +clean-elc: + rm -f f.elc + +.PHONY: all compile clean-elc package-lint