install.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. name: install
  2. on:
  3. pull_request:
  4. branches:
  5. - "master"
  6. - "rolling"
  7. paths:
  8. - 'lua/**'
  9. - 'snapshots/**'
  10. - 'tests/**'
  11. - 'utils/**'
  12. jobs:
  13. unixish:
  14. name: ${{ matrix.os }} ${{ matrix.runner }}
  15. strategy:
  16. fail-fast: false
  17. matrix:
  18. include:
  19. - runner: ubuntu-20.04
  20. os: linux
  21. - runner: macos-10.15
  22. os: osx
  23. runs-on: ${{ matrix.runner }}
  24. if: github.event.pull_request.draft == false
  25. steps:
  26. - uses: actions/checkout@v2
  27. - name: Install neovim binary
  28. run: |
  29. echo "$HOME/.local/bin" >> $GITHUB_PATH
  30. bash ./utils/installer/install-neovim-from-release
  31. - name: Install LunarVim
  32. timeout-minutes: 4
  33. run: |
  34. ./utils/installer/install.sh --local --no-install-dependencies
  35. - name: Run unit-tests
  36. # NOTE: make sure to adjust the timeout if you start adding a lot of tests
  37. timeout-minutes: 4
  38. run: make test
  39. windows:
  40. name: "windows-latest"
  41. runs-on: windows-latest
  42. if: github.event.pull_request.draft == false
  43. continue-on-error: true # windows support is still experimental
  44. defaults:
  45. run:
  46. shell: pwsh
  47. steps:
  48. # it's not currently possbile to run tests on windows, see nvim-lua/plenary.nvim#255
  49. - uses: actions/checkout@v2
  50. - name: Install neovim binary
  51. uses: rhysd/action-setup-vim@v1
  52. with:
  53. neovim: true
  54. version: v0.6.1
  55. - name: Install LunarVim
  56. timeout-minutes: 4
  57. run: |
  58. echo "$HOME/.local/bin" >> $GITHUB_PATH
  59. pwsh.exe -NoLogo -ExecutionPolicy Bypass -NonInteractive -Command "./utils/installer/install.ps1 --local"