From a8510cd23fa5d0c4fe90be553673413f87500855 Mon Sep 17 00:00:00 2001 From: Julien Vincent Date: Thu, 21 Sep 2023 00:12:28 +0100 Subject: [PATCH] Configure to run tests against stable and nightly --- .github/workflows/test.yml | 6 ++++++ Justfile | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ede0d0..0c689b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,10 +9,16 @@ jobs: test: name: Test runs-on: ubuntu-20.04 + strategy: + matrix: + channel: [stable, nightly] steps: - uses: actions/checkout@v2 - uses: extractions/setup-just@v1 + - name: Prepare ${{ matrix.channel }} + run: just prepare ${{ matrix.channel }} + - name: Run Tests run: just test diff --git a/Justfile b/Justfile index baea1b4..210f975 100644 --- a/Justfile +++ b/Justfile @@ -1,16 +1,16 @@ -prepare: +prepare channel="nightly": #!/usr/bin/env bash test -d .build/nvim || { mkdir -p ./.build/nvim os=$(uname) if [[ "$os" == "Darwin" ]]; then - curl -L https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz > ./.build/nvim-macos.tar.gz + curl -L https://github.com/neovim/neovim/releases/download/{{ channel }}/nvim-macos.tar.gz > ./.build/nvim-macos.tar.gz xattr -c ./.build/nvim-macos.tar.gz tar xzf ./.build/nvim-macos.tar.gz -C ./.build/nvim --strip-components=1 rm ./.build/nvim-macos.tar.gz elif [[ "$os" == "Linux" ]]; then - curl -L https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz > ./.build/nvim-linux64.tar.gz + curl -L https://github.com/neovim/neovim/releases/download/{{ channel }}/nvim-linux64.tar.gz > ./.build/nvim-linux64.tar.gz tar xzf ./.build/nvim-linux64.tar.gz -C ./.build/nvim --strip-components=1 rm ./.build/nvim-linux64.tar.gz else