From 9b528ecf57c58ab282d89f31b4e963662b1ace73 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 25 Jun 2022 17:28:16 +0200 Subject: ci: update runners to include nightly neovim (#2756) * ci: update runners to include nightly neovim * ci: run installer from new remote * ci: update path rule to monitor workflows folder --- .github/workflows/install.yaml | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 51336ed9..7829644d 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -6,6 +6,7 @@ on: - "master" - "rolling" paths: + - '.github/workflows/**' - 'lua/**' - 'snapshots/**' - 'tests/**' @@ -13,33 +14,51 @@ on: jobs: unixish: - name: ${{ matrix.os }} ${{ matrix.runner }} + name: ${{ matrix.os }} ${{ matrix.runner }} (${{ matrix.neovim }}) strategy: fail-fast: false matrix: include: - - runner: ubuntu-20.04 + - runner: ubuntu-latest os: linux - - runner: macos-10.15 + neovim: v0.7.0 + - runner: macos-latest os: osx + neovim: v0.7.0 + - runner: ubuntu-22.04 + os: linux + neovim: nightly + - runner: macos-12 + os: osx + neovim: nightly runs-on: ${{ matrix.runner }} steps: - uses: actions/checkout@v2 - name: Install neovim binary - run: | - echo "$HOME/.local/bin" >> $GITHUB_PATH - bash ./utils/installer/install-neovim-from-release + uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: ${{ matrix.neovim }} - name: Install LunarVim timeout-minutes: 4 + env: + LV_BRANCH: ${{ github.head_ref || github.ref_name }} + LV_REMOTE: ${{ github.event.pull_request.head.repo.full_name || github.repository }} run: | - ./utils/installer/install.sh --local --no-install-dependencies + export PATH="$HOME/.local/bin:$PATH" + + installer_url="https://raw.githubusercontent.com/${LV_REMOTE}/${LV_BRANCH}/utils/installer/install.sh" + curl -LSsO "$installer_url" + bash ./install.sh --no-install-dependencies - name: Run unit-tests # NOTE: make sure to adjust the timeout if you start adding a lot of tests timeout-minutes: 4 - run: make test + run: | + nvim --version + make test windows: name: "windows-latest" -- cgit v1.2.3