Skip to content

Commit

Permalink
Configure to run tests against stable and nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Sep 20, 2023
1 parent c15dbc6 commit a8510cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a8510cd

Please sign in to comment.