install.yaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.10.0
  23. - runner: macos-latest
  24. os: osx
  25. neovim: v0.10.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@v4
  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. LUNARVIM_LOG_LEVEL: "debug"
  46. run: |
  47. export PATH="$HOME/.local/bin:$PATH"
  48. installer_url="https://raw.githubusercontent.com/${LV_REMOTE}/${LV_BRANCH}/utils/installer/install.sh"
  49. curl -LSsO "$installer_url"
  50. bash ./install.sh --no-install-dependencies
  51. - name: Run unit-tests
  52. # NOTE: make sure to adjust the timeout if you start adding a lot of tests
  53. timeout-minutes: 4
  54. run: |
  55. nvim --version
  56. make test
  57. windows:
  58. name: "windows-latest"
  59. runs-on: windows-latest
  60. if: github.event.pull_request.draft == false
  61. continue-on-error: true # windows support is still experimental
  62. defaults:
  63. run:
  64. shell: pwsh
  65. steps:
  66. # it's not currently possbile to run tests on windows, see nvim-lua/plenary.nvim#255
  67. - uses: actions/checkout@v4
  68. - name: Install neovim binary
  69. uses: rhysd/action-setup-vim@v1
  70. with:
  71. neovim: true
  72. version: v0.10.0
  73. - name: Install LunarVim
  74. timeout-minutes: 4
  75. run: |
  76. echo "$HOME/.local/bin" >> $GITHUB_PATH
  77. pwsh.exe -NoLogo -ExecutionPolicy Bypass -NonInteractive -Command "./utils/installer/install.ps1 --local"