install.yaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. name: install
  2. on:
  3. pull_request:
  4. branches:
  5. - "master"
  6. - "rolling"
  7. paths:
  8. - '.github/workflows/**'
  9. - 'lua/**'
  10. - 'snapshots/**'
  11. - 'tests/**'
  12. - 'utils/**'
  13. jobs:
  14. unixish:
  15. name: ${{ matrix.os }} ${{ matrix.runner }} (${{ matrix.neovim }})
  16. strategy:
  17. fail-fast: false
  18. matrix:
  19. include:
  20. - runner: ubuntu-latest
  21. os: linux
  22. neovim: v0.7.0
  23. - runner: macos-latest
  24. os: osx
  25. neovim: v0.7.0
  26. - runner: ubuntu-22.04
  27. os: linux
  28. neovim: nightly
  29. - runner: macos-12
  30. os: osx
  31. neovim: nightly
  32. runs-on: ${{ matrix.runner }}
  33. steps:
  34. - uses: actions/checkout@v2
  35. - name: Install neovim binary
  36. uses: rhysd/action-setup-vim@v1
  37. with:
  38. neovim: true
  39. version: ${{ matrix.neovim }}
  40. - name: Install LunarVim
  41. timeout-minutes: 4
  42. env:
  43. LV_BRANCH: ${{ github.head_ref || github.ref_name }}
  44. LV_REMOTE: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
  45. run: |
  46. export PATH="$HOME/.local/bin:$PATH"
  47. installer_url="https://raw.githubusercontent.com/${LV_REMOTE}/${LV_BRANCH}/utils/installer/install.sh"
  48. curl -LSsO "$installer_url"
  49. bash ./install.sh --no-install-dependencies
  50. - name: Run unit-tests
  51. # NOTE: make sure to adjust the timeout if you start adding a lot of tests
  52. timeout-minutes: 4
  53. run: |
  54. nvim --version
  55. make test
  56. windows:
  57. name: "windows-latest"
  58. runs-on: windows-latest
  59. if: github.event.pull_request.draft == false
  60. continue-on-error: true # windows support is still experimental
  61. defaults:
  62. run:
  63. shell: pwsh
  64. steps:
  65. # it's not currently possbile to run tests on windows, see nvim-lua/plenary.nvim#255
  66. - uses: actions/checkout@v2
  67. - name: Install neovim binary
  68. uses: rhysd/action-setup-vim@v1
  69. with:
  70. neovim: true
  71. version: v0.7.0
  72. - name: Install LunarVim
  73. timeout-minutes: 4
  74. run: |
  75. echo "$HOME/.local/bin" >> $GITHUB_PATH
  76. pwsh.exe -NoLogo -ExecutionPolicy Bypass -NonInteractive -Command "./utils/installer/install.ps1 --local"