test.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 with flx-ido
  49. run: |
  50. eldev -p -S '(load-file "./Eldev-flx-ido")' -dtT test
  51. - name: Run the test suite in source mode (for undercover)
  52. if: ${{ matrix.emacs_version == env.coveralls_emacs_version }}
  53. env:
  54. COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
  55. run: |
  56. eldev -s -dtT test
  57. eldev -s -S '(load-file "./Eldev-flx-ido")' -dtT test