From d1141552941aec6fc59edf985bb8ed9a3ee29aa4 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Tue, 6 Jul 2021 13:08:20 +0100 Subject: [PATCH] Run CI against nvim 0.5 --- .github/workflows/ci.yml | 10 +++++++++- Makefile | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7517b42f9..ec4254c1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,8 @@ jobs: build: # The type of runner that the job will run on runs-on: ubuntu-latest + env: + NEOVIM_BRANCH: v0.5.0 # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -61,8 +63,14 @@ jobs: - name: Check lua files are built from latest teal run: make tl-ensure + - name: Cache neovim + uses: actions/cache@v2 + with: + path: neovim + key: build-${{env.NEOVIM_BRANCH}} + - name: Build Neovim - run: make neovim + run: make neovim NEOVIM_BRANCH=$NEOVIM_BRANCH - name: Run Test run: make test diff --git a/Makefile b/Makefile index f0e255dc8..ebd1ca522 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,10 @@ INIT_LUAROCKS := eval $$(luarocks --lua-version=5.1 path) && .DEFAULT_GOAL := build +NEOVIM_BRANCH := master + neovim: - git clone --depth 1 https://github.com/neovim/neovim + git clone --depth 1 https://github.com/neovim/neovim --branch $(NEOVIM_BRANCH) make -C $@ plenary.nvim: