test.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name: CI
  2. on:
  3. push:
  4. paths-ignore:
  5. - '**.md'
  6. - 'ChangeLog'
  7. pull_request:
  8. paths-ignore:
  9. - '**.md'
  10. - 'ChangeLog'
  11. jobs:
  12. test:
  13. runs-on: ubuntu-latest
  14. strategy:
  15. fail-fast: false
  16. matrix:
  17. emacs_version:
  18. - 27.1
  19. - 26.3
  20. - 26.2
  21. - 26.1
  22. - 25.3
  23. - 25.2
  24. - 25.1
  25. - 24.5
  26. - 24.4
  27. - snapshot
  28. env:
  29. # We only generate a coverage report for one Emacs version
  30. # (generally the latest release version) in order to avoid
  31. # duplicate reports.
  32. coveralls_emacs_version: 27.1
  33. steps:
  34. - name: Set up Emacs
  35. uses: purcell/setup-emacs@master
  36. with:
  37. version: ${{matrix.emacs_version}}
  38. - name: Install Eldev
  39. run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
  40. - name: Check out the source code
  41. uses: actions/checkout@v2
  42. - name: Install Elisp dependencies
  43. run: eldev prepare test
  44. - name: Run the test suite
  45. run: |
  46. eldev -p -dtT test
  47. - name: Run the test suite in source mode (for undercover)
  48. if: ${{ matrix.emacs_version == env.coveralls_emacs_version }}
  49. env:
  50. COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
  51. run: |
  52. eldev -s -dtT test