diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ede0d0..0af42b2 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..982d493 100644 --- a/Justfile +++ b/Justfile @@ -1,16 +1,16 @@ -prepare: +prepare channel="stable": #!/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