install.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. steps:
  25. - uses: actions/checkout@v2
  26. - name: Install neovim binary
  27. run: |
  28. echo "$HOME/.local/bin" >> $GITHUB_PATH
  29. bash ./utils/installer/install-neovim-from-release
  30. - name: Install LunarVim
  31. timeout-minutes: 4
  32. run: |
  33. ./utils/installer/install.sh --local --no-install-dependencies
  34. - name: Run unit-tests
  35. # NOTE: make sure to adjust the timeout if you start adding a lot of tests
  36. timeout-minutes: 4
  37. run: make test
  38. windows:
  39. name: "windows-latest"
  40. runs-on: windows-latest
  41. if: github.event.pull_request.draft == false
  42. continue-on-error: true # windows support is still experimental
  43. defaults:
  44. run:
  45. shell: pwsh
  46. steps:
  47. # it's not currently possbile to run tests on windows, see nvim-lua/plenary.nvim#255
  48. - uses: actions/checkout@v2
  49. - name: Install neovim binary
  50. uses: rhysd/action-setup-vim@v1
  51. with:
  52. neovim: true
  53. version: v0.7.0
  54. - name: Install LunarVim
  55. timeout-minutes: 4
  56. run: |
  57. echo "$HOME/.local/bin" >> $GITHUB_PATH
  58. pwsh.exe -NoLogo -ExecutionPolicy Bypass -NonInteractive -Command "./utils/installer/install.ps1 --local"