helpful

a fork of Wilfred's helpful
git clone https://git.trogloxene.org/helpful.git
Log | Files | Refs | README

commit 366057cda8a587b8bf1261612c62306c15751fde
parent 584ecc887bb92133119f93a6716cdf7af0b51dca
Author: Wilfred Hughes <me@wilfred.me.uk>
Date:   Sun, 14 Feb 2021 19:12:21 -0800

Set up tests on GitHub actions

Diffstat:
A.github/workflows/test.yml | 38++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/test.yml 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"