From 1a15de497689b494c498a1f687928b3e90eea2e5 Mon Sep 17 00:00:00 2001 From: John Andrews Date: Mon, 9 Aug 2021 15:58:08 -0400 Subject: [PATCH] Enable github CI workflow --- .github/workflows/test.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2163038 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + paths-ignore: + - '**.md' + pull_request: + paths-ignore: + - '**.md' + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + emacs_version: + # Add more lines like this if you want to test on different Emacs versions. + - 26.3 + - 27.2 + + 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 elisp source code + uses: actions/checkout@v2 + with: + path: el + + - name: Test the uncompiled source + run: | + eldev -p -dtT test + + - name: Compile and run tests again + run: | + eldev compile + eldev -p -dtT test