install.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. - name: Install neovim binary
  25. run: |
  26. echo "$HOME/.local/bin" >> $GITHUB_PATH
  27. bash ./utils/installer/install-neovim-from-release
  28. - name: Install LunarVim
  29. timeout-minutes: 4
  30. run: |
  31. mkdir -p "$HOME"/.local/share/lunarvim/lvim
  32. mkdir -p "$HOME"/.config/lvim
  33. ln -s "$PWD"/* "$HOME"/.local/share/lunarvim/lvim/.
  34. bash ./utils/installer/install.sh
  35. - name: Test LunarVim PackerCompile
  36. run: if "$HOME"/.local/bin/lvim --headless +PackerCompile -c ':qall' 2>&1|grep -q 'Error'; then false; fi
  37. - name: Test LunarVim Health
  38. run: if "$HOME"/.local/bin/lvim --headless +checkhealth -c ':qall' 2>&1|grep -q 'Error'; then false; fi
  39. - name: Run unit-tests
  40. # NOTE: make sure to adjust the timeout if you start adding a lot of tests
  41. timeout-minutes: 4
  42. run: make test
  43. # freebsd:
  44. # runs-on: macos-latest
  45. # if: github.event.pull_request.draft == false
  46. # continue-on-error: true # we don't support freebsd yet
  47. # name: "FreeBSD macos-latest"
  48. # steps:
  49. # - uses: actions/checkout@v2
  50. # - name: Install dependencies for FreeBSD
  51. # uses: vmactions/freebsd-vm@v0.1.5
  52. # with:
  53. # prepare: pkg install -y curl neovim
  54. # run: bash ./utils/installer/install.sh
  55. # - name: Test LunarVim PackerCompile
  56. # uses: vmactions/freebsd-vm@v0.1.5
  57. # with:
  58. # run: if nvim --headless +PackerCompile -c ':qall' 2>&1|grep -q 'Error'; then false; fi
  59. # - name: Test LunarVim Health
  60. # uses: vmactions/freebsd-vm@v0.1.5
  61. # with:
  62. # run: if nvim --headless +checkhealth -c ':qall' 2>&1|grep -q 'Error'; then false; fi