From 8149df913265c8c90581f9c1cb6e92ad94cf570e Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Mon, 18 Jul 2022 23:19:29 +0300 Subject: [PATCH] Add a complication check GHA It's based on Eldev. --- .github/workflows/test-emacs.yml | 34 ++++++++++++++++++++++++++++++++ .gitignore | 1 + src/top/Eldev | 1 + 3 files changed, 36 insertions(+) create mode 100644 .github/workflows/test-emacs.yml create mode 100644 src/top/Eldev diff --git a/.github/workflows/test-emacs.yml b/.github/workflows/test-emacs.yml new file mode 100644 index 0000000..916e422 --- /dev/null +++ b/.github/workflows/test-emacs.yml @@ -0,0 +1,34 @@ +name: Test Emacs + +on: + push: + paths: ['**.el'] + pull_request: + paths: ['**.el'] + +jobs: + test: + runs-on: ubuntu-latest + continue-on-error: ${{matrix.emacs_version == 'snapshot'}} + + strategy: + matrix: + emacs_version: ['26.3', '27.1', '28.1', 'snapshot'] + + steps: + - name: Set up Emacs + uses: purcell/setup-emacs@master + with: + version: ${{matrix.emacs_version}} + + - name: Install Eldev + run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh + + - name: Check out the source code + uses: actions/checkout@v2 + + - name: Test the project + run: | + cd src/top + # eldev -p -dtT -C test --expect 100 + eldev -dtT -C compile --warnings-as-errors diff --git a/.gitignore b/.gitignore index 8767938..f43b102 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,6 @@ _build/ *.install *.elc .*.swp +.eldev /result* diff --git a/src/top/Eldev b/src/top/Eldev new file mode 100644 index 0000000..c51ddaa --- /dev/null +++ b/src/top/Eldev @@ -0,0 +1 @@ +(eldev-use-package-archive 'melpa)