You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.5 KiB

3 years ago
  1. ---
  2. name: Tests
  3. on:
  4. push:
  5. paths-ignore:
  6. - '**.md'
  7. - '**.png'
  8. pull_request:
  9. paths-ignore:
  10. - '**.md'
  11. - '**.png'
  12. schedule:
  13. - cron: '29 7 * * 1'
  14. jobs:
  15. test:
  16. runs-on: ubuntu-latest
  17. strategy:
  18. fail-fast: false
  19. matrix:
  20. version:
  21. - master
  22. - 5.8
  23. - 5.7.1
  24. - 5.7
  25. - 5.6.2
  26. - 5.6.1
  27. - 5.6
  28. - 5.5.1
  29. - 5.5
  30. - 5.4.2
  31. - 5.4.1
  32. - 5.4
  33. - 5.3.1
  34. - 5.3
  35. - 5.2
  36. - 5.1.1
  37. - 5.1
  38. - 5.0.8
  39. - 5.0.7
  40. - 5.0.6
  41. - 5.0.5
  42. - 5.0.4
  43. - 5.0.3
  44. - 5.0.2
  45. - 5.0.1
  46. - 5.0.0
  47. - 4.3.17
  48. - 4.3.16
  49. - 4.3.15
  50. - 4.3.14
  51. - 4.3.13
  52. - 4.3.12
  53. - 4.3.11
  54. container:
  55. image: zshusers/zsh:${{ matrix.version }}
  56. steps:
  57. - uses: actions/checkout@v2
  58. - run: install_packages bsdmainutils make procps
  59. - run: make test
  60. notify:
  61. runs-on: ubuntu-latest
  62. needs: test
  63. if: failure() && (github.repository_owner == 'zsh-users')
  64. steps:
  65. -
  66. name: Notify IRC
  67. uses: Gottox/irc-message-action@v1
  68. with:
  69. server: irc.libera.chat
  70. channel: '#zsh-syntax-highlighting'
  71. nickname: zsyh-gh-bot
  72. message: '${{ github.ref }} failed tests: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'