unittests.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: unit-tests
  2. on: [push, pull_request]
  3. jobs:
  4. linux:
  5. name: linux
  6. runs-on: ubuntu-latest
  7. strategy:
  8. matrix:
  9. vim:
  10. - nightly
  11. - v8.2.0000
  12. - v8.1.0000
  13. - v8.0.0000
  14. - v7.4
  15. steps:
  16. - name: Checkout Code
  17. uses: actions/checkout@v2
  18. - name: Setup Vim
  19. uses: rhysd/action-setup-vim@v1
  20. id: vim
  21. with:
  22. version: ${{ matrix.vim }}
  23. - name: Run Tests
  24. run: |
  25. uname -a
  26. export VIMPRG=${{ steps.vim.outputs.executable }}
  27. $VIMPRG --version
  28. cd test
  29. ./run_mru_tests.sh
  30. windows:
  31. name: windows
  32. runs-on: windows-latest
  33. steps:
  34. - uses: actions/checkout@v2
  35. - name: Download Vim
  36. shell: PowerShell
  37. run: Invoke-WebRequest -Uri https://github.com/vim/vim-win32-installer/releases/download/v8.2.2488/gvim_8.2.2488_x64.zip -OutFile vim.zip
  38. - name: Extract vim
  39. shell: PowerShell
  40. run: Expand-Archive -Path vim.zip -DestinationPath $env:USERPROFILE
  41. - name: Run Tests
  42. run: |
  43. $env:PATH = $env:PATH + ';' + $env:USERPROFILE + '\vim\vim82'
  44. Get-ComputerInfo -Property Windows*
  45. vim --version
  46. cd test
  47. .\run_mru_tests.cmd
  48. neovim-linux:
  49. name: neovim-linux
  50. runs-on: ubuntu-latest
  51. steps:
  52. - name: Checkout Code
  53. uses: actions/checkout@v2
  54. - name: Setup Neovim
  55. uses: rhysd/action-setup-vim@v1
  56. id: vim
  57. with:
  58. version: stable
  59. neovim: true
  60. - name: Run Tests
  61. run: |
  62. uname -a
  63. export VIMPRG=${{ steps.vim.outputs.executable }}
  64. $VIMPRG --version
  65. cd test
  66. ./run_mru_tests.sh