Skip to content

Commit 0ed7b36

Browse files
committed
Create matrix for NEOVIM version
1 parent 57cd577 commit 0ed7b36

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/default.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,25 @@ env:
55
jobs:
66
unit-tests:
77
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
neovim-version: ["0.9.5", "0.10.0"]
11+
fail-fast: false
12+
name: NEOVIM ${{ matrix.neovim-version }}
813
steps:
914
- name: Checkout
1015
uses: actions/checkout@v3
11-
- name: Pre-build devcontainer image
16+
- name: Pre-build devcontainer image for NEOVIM ${{ matrix.neovim-version }}
1217
uses: devcontainers/[email protected]
1318
with:
14-
imageName: ${{ env.IMAGE_NAME }}
15-
cacheFrom: ${{ env.IMAGE_NAME }}
19+
imageName: ${{ env.IMAGE_NAME }}-${{ matrix.neovim-version }}
20+
cacheFrom: ${{ env.IMAGE_NAME }}-${{ matrix.neovim-version }}
1621
push: never
22+
buildArgs: |
23+
NEOVIM_VERSION=${{ matrix.neovim-version }}
1724
- name: Run tests inside the docker image
1825
uses: devcontainers/[email protected]
1926
with:
20-
cacheFrom: ${{ env.IMAGE_NAME }}
27+
cacheFrom: ${{ env.IMAGE_NAME }}-${{ matrix.neovim-version }}
2128
push: never
2229
runCmd: make test

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21+
ARG NEOVIM_VERSION=0.10.0
22+
2123
FROM ubuntu:22.04 as builder
2224

25+
ARG NEOVIM_VERSION
2326
# Install dependencies needed for building devcontainers/cli and developing in neovim
2427
RUN apt-get update && \
2528
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
@@ -33,6 +36,11 @@ RUN apt-get update && \
3336
luajit \
3437
luarocks \
3538
git \
39+
# Install NEOVIM
40+
&& apt-get install -y libfuse2 fuse3 \
41+
&& curl -fLO https://github.com/neovim/neovim-releases/releases/download/v${NEOVIM_VERSION}/nvim.appimage \
42+
&& mv nvim.appimage /usr/bin/nvim \
43+
&& chmod u+x /usr/bin/nvim \
3644
# apt clean-up
3745
&& apt-get autoremove -y \
3846
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)