test.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.2
  19. - 27.1
  20. - 26.3
  21. - 26.2
  22. - 26.1
  23. - 25.3
  24. - 25.2
  25. - 25.1
  26. - 24.5
  27. - 24.4
  28. - snapshot
  29. env:
  30. # We only generate a coverage report for one Emacs version
  31. # (generally the latest release version) in order to avoid
  32. # duplicate reports.
  33. coveralls_emacs_version: 27.2
  34. steps:
  35. - name: Set up Emacs
  36. uses: purcell/setup-emacs@master
  37. with:
  38. version: ${{matrix.emacs_version}}
  39. - name: Install Eldev
  40. run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh
  41. - name: Check out the source code
  42. uses: actions/checkout@v2
  43. - name: Install Elisp dependencies
  44. run: eldev prepare test
  45. - name: Run the test suite
  46. run: |
  47. eldev -p -dtT test
  48. - name: Run the test suite in source mode (for undercover)
  49. if: ${{ matrix.emacs_version == env.coveralls_emacs_version }}
  50. env:
  51. COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
  52. run: |
  53. eldev -s -dtT test