install.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. name: install
  2. on:
  3. push:
  4. branches: "**"
  5. pull_request:
  6. branches:
  7. - "master"
  8. - "rolling"
  9. jobs:
  10. unixish:
  11. name: ${{ matrix.os }} ${{ matrix.runner }}
  12. strategy:
  13. fail-fast: false
  14. matrix:
  15. include:
  16. - runner: ubuntu-20.04
  17. os: linux
  18. - runner: macos-10.15
  19. os: osx
  20. runs-on: ${{ matrix.runner }}
  21. if: github.event.pull_request.draft == false
  22. steps:
  23. - uses: actions/checkout@v2
  24. # sha256sum is not available by default
  25. - name: Installl dependencies for OSX
  26. if: matrix.os == 'osx'
  27. run: |
  28. echo "HOMEBREW_NO_AUTO_UPDATE=1" >> $GITHUB_ENV
  29. echo "$HOME/.local/bin" >> $GITHUB_PATH
  30. brew install coreutils
  31. - name: Install neovim binary
  32. run: |
  33. bash ./utils/installer/install-neovim-from-release
  34. - name: Install LunarVim
  35. timeout-minutes: 4
  36. run: |
  37. mkdir -p "$HOME"/.local/share/lunarvim/lvim
  38. mkdir -p "$HOME"/.config/lvim
  39. ln -s "$PWD"/* "$HOME"/.local/share/lunarvim/lvim/.
  40. bash ./utils/installer/install.sh
  41. - name: Run unit-tests
  42. # NOTE: make sure to adjust the timeout if you start adding a lot of tests
  43. timeout-minutes: 4
  44. run: make test
  45. - name: Test LunarVim PackerCompile
  46. run: if "$HOME"/.local/bin/lvim --headless +PackerCompile -c ':qall' 2>&1|grep -q 'Error'; then false; fi
  47. - name: Test LunarVim Health
  48. run: if "$HOME"/.local/bin/lvim --headless +checkhealth -c ':qall' 2>&1|grep -q 'Error'; then false; fi
  49. # freebsd:
  50. # runs-on: macos-latest
  51. # if: github.event.pull_request.draft == false
  52. # continue-on-error: true # we don't support freebsd yet
  53. # name: "FreeBSD macos-latest"
  54. # steps:
  55. # - uses: actions/checkout@v2
  56. # - name: Install dependencies for FreeBSD
  57. # uses: vmactions/freebsd-vm@v0.1.5
  58. # with:
  59. # prepare: pkg install -y curl neovim
  60. # run: bash ./utils/installer/install.sh
  61. # - name: Test LunarVim PackerCompile
  62. # uses: vmactions/freebsd-vm@v0.1.5
  63. # with:
  64. # run: if nvim --headless +PackerCompile -c ':qall' 2>&1|grep -q 'Error'; then false; fi
  65. # - name: Test LunarVim Health
  66. # uses: vmactions/freebsd-vm@v0.1.5
  67. # with:
  68. # run: if nvim --headless +checkhealth -c ':qall' 2>&1|grep -q 'Error'; then false; fi