aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2021-02-14 19:12:21 -0800
committerWilfred Hughes <me@wilfred.me.uk>2021-02-14 19:12:21 -0800
commit366057cda8a587b8bf1261612c62306c15751fde (patch)
tree88551d3718db181017e8971ad041035e625d96e1
parent584ecc887bb92133119f93a6716cdf7af0b51dca (diff)
Set up tests on GitHub actions
-rw-r--r--.github/workflows/test.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..89a47f7
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,38 @@
+name: Run test suite
+on: [push, pull_request]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ emacs_version:
+ - '25.1'
+ - '26.1'
+ - '27.1'
+
+ steps:
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs_version }}
+ - uses: conao3/setup-cask@master
+
+ - uses: actions/checkout@v2
+ - name: Test
+ env:
+ COVERALLS_FLAG_NAME: Emacs ${{ matrix.emacs_version }}
+ COVERALLS_PARALLEL: 1
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # Run tests under both interpreted and compiled elisp.
+ run: |
+ cask install
+ cask exec ert-runner
+ cask build
+ cask exec ert-runner
+
+ finalize:
+ runs-on: ubuntu-latest
+ if: always()
+ needs: test
+ steps:
+ - run: curl "https://coveralls.io/webhook?repo_name=$GITHUB_REPOSITORY&repo_token=${{ secrets.GITHUB_TOKEN }}" -d "payload[build_num]=$GITHUB_RUN_NUMBER&payload[status]=done"