summaryrefslogtreecommitdiff
path: root/.github/workflows/install.yaml
blob: 6531de0eb6bcd1dd41dd0a97d01cf1f2672a7c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: install
on:
  push:
    branches: '**'
  pull_request:
    branches:
      - 'master'
      - 'rolling'

jobs:
  unixish:
    name: ${{ matrix.os }} ${{ matrix.runner }}
    strategy:
      fail-fast: false
      matrix:
        include:
          - runner: ubuntu-20.04
            os: linux
          - runner: macos-10.15
            os: osx
    runs-on: ${{ matrix.runner }}
    if: github.event.pull_request.draft == false
    steps:
      - uses: actions/checkout@v2
      
      - name: Install dependencies for Linux
        if: matrix.os == 'linux'
        run: |
          sudo apt-get install -y gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip build-essential
          sudo bash ./utils/bin/install-latest-neovim

      - name: Installl dependencies for OSX
        if: matrix.os == 'osx'
        run: |
          brew update >/dev/null
          brew upgrade
          brew install neovim

      - name: Install LunarVim
        run: |
          bash ./utils/installer/install.sh

      - name: Test LunarVim PackerCompile
        run: if nvim --headless +PackerCompile -c ':qall' 2>&1|grep -q 'Error'; then false; fi

      - name: Test LunarVim Health
        run: if nvim --headless +checkhealth -c ':qall' 2>&1|grep -q 'Error'; then false; fi

  freebsd:
    runs-on: macos-latest
    if: github.event.pull_request.draft == false
    continue-on-error: true # we don't support freebsd yet
    name: "FreeBSD macos-latest"
    steps:
      - uses: actions/checkout@v2
      
      - name: Install dependencies for FreeBSD
        uses: vmactions/[email protected]
        with:
          prepare: pkg install -y curl neovim
          run: bash ./utils/installer/install.sh

      - name: Test LunarVim PackerCompile
        uses: vmactions/[email protected]
        with:
          run: if nvim --headless +PackerCompile -c ':qall' 2>&1|grep -q 'Error'; then false; fi

      - name: Test LunarVim Health
        uses: vmactions/[email protected]
        with:
          run: if nvim --headless +checkhealth -c ':qall' 2>&1|grep -q 'Error'; then false; fi