install.yaml 2.4 KB

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